Beispiel #1
0
def getfilelist():
    shellid = bottle.request.forms.shellid
    path = bottle.request.forms.path
    shellinfo = get_shell_from_id(shellid)
    shell = Shell(shellinfo['url'], shellinfo['pwd'], shellinfo['plugin'],
                  shellinfo['method'], shellinfo['coding'])
    info = {
        'sysinfo': shell.get_sys_info(),
        'filelist': shell.get_dir(path),
    }
    return info