in azure/datalake/store/core.py [0:0]
def glob(self, path, details=False, invalidate_cache=True):
"""
Find files (not directories) by glob-matching.
Parameters
----------
path: str or AzureDLPath
Path to query
details: bool
Whether to include file details
invalidate_cache: bool
Whether to invalidate cache
Returns
-------
List of files
"""
path = AzureDLPath(path).trim()
path_as_posix = path.as_posix()
prefix = path.globless_prefix
allfiles = self.walk(prefix, details, invalidate_cache)
if prefix == path:
return allfiles
return [f for f in allfiles if AzureDLPath(f['name'] if details else f).match(path_as_posix)]