def glob(path, remote=True): ''' Glob a directory path to get the list of files. ''' with hide('everything'): return runner.run('ls -1 {}'.format(path), remote=remote).split()