pgcontents/utils/sync.py
def walk_dirs(mgr, dirs):
    """
    Recursive helper for walk.
    """
    for directory in dirs:
        children = mgr.get(
            directory,
            content=True,
            type='directory',
        )['content']
        dirs, files = map(sorted, _separate_dirs_files(children))
        yield directory, dirs, files
        if dirs:
            for entry in walk_dirs(mgr, dirs):
                yield entry
def walk_dirs(mgr, dirs):
    for directory in dirs:
        children = mgr.get(
            directory,
            content=True,
            type='directory',
        )['content']
        dirs, files = map(sorted, _separate_dirs_files(children))
        yield directory, dirs, files
        if dirs:
            for entry in walk_dirs(mgr, dirs):
                yield entry
def walk_dirs ( mgr , dirs ) : for directory in dirs : children = mgr . get ( directory , content = True , type = 'directory' , ) [ 'content' ] dirs , files = map ( sorted , _separate_dirs_files ( children ) ) yield directory , dirs , files if dirs : for entry in walk_dirs ( mgr , dirs ) : yield entry
Recursive helper for walk.
Recursive helper for walk .