def list(path, recursive=None): root_dir = app_dir() for dir in root_dir['contents']: if dir['path'] == u'/A4': a4_dir = dir break else: self.fail('No A4 directory') a4_dir['contents'].append( create_dropbox_item( path=file_info.path)) return root_dir
def get_app_dir(): app_dir()
def list(path): root_dir = app_dir() root_dir['contents'] = filter( lambda x: x['is_dir'] and x['path'] == u'/A4', root_dir['contents']) return root_dir