Beispiel #1
0
def delfile():
    id = bottle.request.forms.shellid
    filename = bottle.request.forms.filename
    path = bottle.request.forms.path
    shellinfo = get_shell_from_id(id)
    shell = Shell(shellinfo['url'], shellinfo['pwd'], shellinfo['plugin'],
                  shellinfo['method'], shellinfo['coding'])
    return shell.del_file(filename, path)