Exemplo n.º 1
0
 def create(cls, *args):
     if len(*args) != 2:
         print('错误:参数错误,请参考help命令')
         return False
     fileopera = FileOpera()
     return fileopera.create(*args[0])
Exemplo n.º 2
0
 def chown(cls, *args):
     if len(*args) != 2:
         print('错误:参数错误,请参考help命令')
     fileopera = FileOpera()
     fileopera.chown(*args[0])
Exemplo n.º 3
0
 def type(cls, *args):
     if len(*args) != 1:
         print('错误:参数错误,请参考help命令')
         return False
     fileopera = FileOpera()
     return fileopera.type(*args[0])
Exemplo n.º 4
0
 def dir(cls, *args):
     fileopera = FileOpera()
     return fileopera.dir()