#coding=utf-8
#author@alingse
#2016.10.09

from panshell.core import FS

class localFS(FS):
    name = 'local'
    def __init__(self,**kwargs):
        name = kwargs.pop('name',self.name)
        FS.__init__(self,name,**kwargs)

    def do_ls(self,line):
        print(self.name,'ls')

if __name__ == '__main__':
    fs = localFS()
#coding=utf-8
#author@alingse
#2016.10.09

from panshell.core import FS

class localFS(FS):
    name = 'local'
    def __init__(self,**kwargs):
        name = kwargs.pop('name',self.name)
        FS.__init__(self,name,**kwargs)

    def do_ls(self,line):
        print(self.name,'ls')

    def do_exit(self,line):
        print('exit this local')

if __name__ == '__main__':
    fs = localFS()
添加 local