in src/main/python/s3mper.py [0:0]
def list(self, path, include_delete_marked=False):
""" Lists the given directory in the metastore. The passed in path must be a directory.
Example:
s.list(path) -> []
"""
if self.disabled:
return
if isinstance(path, basestring):
path = Path(path)
listing = self.db.query(path__eq=path.normalize(), consistent=True)
paths = []
for e in listing:
if ( not include_delete_marked ) and 'deleted' in e:
continue
paths.append(Path('s3n:'+e['path']+"/"+e['file']))
return paths