FileManager.java
上传用户:hensond
上传日期:2021-12-27
资源大小:817k
文件大小:1k
- package com.company.command_name.os;
- /**
- * @author cbf4Life cbf4life@126.com
- * I'm glad to share my knowledge with you all.
- */
- public class FileManager {
- //ls命令
- public static String ls(String path){
- return "file1nfile2nfile3nfile4";
- }
-
- //ls -l命令
- public static String ls_l(String path){
- String str = "drw-rw-rw root system 1024 2009-8-20 10:23 file1n";
- str = str + "drw-rw-rw root system 1024 2009-8-20 10:23 file2n";
- str = str + "drw-rw-rw root system 1024 2009-8-20 10:23 file3";
- return str;
- }
-
- //ls -a命令
- public static String ls_a(String path){
- String str = ".n..nfile1nfile2nfile3";
- return str;
- }
- }