예제 #1
0
 def stats(self, path, params=None, **kwargs):
   """
   List the stat of the actual file/directory
   Returns the ABFFStat object
   """
   if ABFS.isroot(path):
     return ABFSStat.for_root(path)
   file_system, dir_name = Init_ABFS.parse_uri(path)[:2]
   if dir_name == '':
     LOG.debug("Path being called is a Filesystem")
     return ABFSStat.for_filesystem(self._statsf(file_system, params, **kwargs), path)
   return ABFSStat.for_single(self._stats(file_system + '/' +dir_name, params, **kwargs), path)
예제 #2
0
 def stats(self, path, params=None, **kwargs):
     """
 List the stat of the actual file/directory
 Returns the ABFFStat object
 """
     if ABFS.isroot(path):
         return ABFSStat.for_root(path)
     try:
         file_system, dir_name = Init_ABFS.parse_uri(path)[:2]
     except:
         raise IOError
     if dir_name == '':
         return ABFSStat.for_filesystem(
             self._statsf(file_system, params, **kwargs), path)
     return ABFSStat.for_single(
         self._stats(file_system + '/' + dir_name, params, **kwargs), path)