Example #1
0
File: ftp-cmd.py Project: bup/bup
def do_ls(repo, args):
    try:
        opt = ls.opts_from_cmdline(args, onabort=OptionError)
    except OptionError as e:
        log('error: %s' % e)
        return
    return ls.within_repo(repo, opt)
Example #2
0
def do_ls(repo, args):
    try:
        opt = ls.opts_from_cmdline(args, onabort=OptionError)
    except OptionError as e:
        log('error: %s' % e)
        return
    return ls.within_repo(repo, opt)
Example #3
0
File: ftp.py Project: jmberg/bup
def do_ls(repo, pwd, args, out):
    pwd_str = b'/'.join(name for name, item in pwd) or b'/'
    try:
        opt = ls.opts_from_cmdline(args, onabort=OptionError, pwd=pwd_str)
    except OptionError as e:
        return
    return ls.within_repo(repo, opt, out, pwd_str)
Example #4
0
def do_ls(repo, args, out):
    try:
        opt = ls.opts_from_cmdline([fsdecode(arg) for arg in args],
                                   onabort=OptionError)
    except OptionError as e:
        log('error: %s' % e)
        return
    return ls.within_repo(repo, opt, out)