parameters: (self, path)
return_statement: return {
              'name': os.path.basename(path) if not_root else path,
              'path': path,
              'parent': os.path.dirname(path) if not_root else None,
              'snapshots': self.ls_snapshots(path),
              'quotas': self.get_quotas(path) if not_root else None
          }
docstring: Transforms path of directory into a meaningful dictionary.
          :param path: The root directory path.
          :type path: str | bytes
          :return: Dict consists of name, path, parent, snapshots and quotas.
          :rtype: dict
docstring_summary: Transforms path of directory into a meaningful dictionary.
          :param path: The root directory path.
          :type path: str | bytes
          :return: Dict consists of name, path, parent, snapshots and quotas.
          :rtype: dict
docstring_tokens: Transforms path of directory into a meaningful dictionary . : param path : The root directory path . : type path : str | bytes : return : Dict consists of name path parent snapshots and quotas . : rtype : dict
function: def get_directory(self, path):
          """
          Transforms path of directory into a meaningful dictionary.
          :param path: The root directory path.
          :type path: str | bytes
          :return: Dict consists of name, path, parent, snapshots and quotas.
          :rtype: dict
          """
          path = path.decode()
          not_root = path != os.sep
          return {
              'name': os.path.basename(path) if not_root else path,
              'path': path,
              'parent': os.path.dirname(path) if not_root else None,
              'snapshots': self.ls_snapshots(path),
              'quotas': self.get_quotas(path) if not_root else None
          }
function_tokens: def get_directory ( self , path ) : path = path . decode ( ) not_root = path != os . sep return { 'name' : os . path . basename ( path ) if not_root else path , 'path' : path , 'parent' : os . path . dirname ( path ) if not_root else None , 'snapshots' : self . ls_snapshots ( path ) , 'quotas' : self . get_quotas ( path ) if not_root else None }