def _get_ids(self):
   if os.path.isdir(self._dirpath):
     ids = []
     for f in os.listdir(self._dirpath):
       ids.append(id_decode(f))
     return ids
   else:
     return []
Ejemplo n.º 2
0
 def _get_ids(self):
     if os.path.isdir(self._dirpath):
         ids = []
         for f in os.listdir(self._dirpath):
             ids.append(id_decode(f))
         return ids
     else:
         return []
Ejemplo n.º 3
0
 def id_decode(self, id):
     """
     This decodes a given identifier from its pairtree filesystem encoding, into
     its original form:
     @param id: Identifier to decode
     @type id: identifier
     @returns: A string of the decoded identifier
     """
     return ppath.id_decode(id)
Ejemplo n.º 4
0
 def id_decode(self, id):
     """
     This decodes a given identifier from its pairtree filesystem encoding, into
     its original form:
     @param id: Identifier to decode
     @type id: identifier
     @returns: A string of the decoded identifier
     """
     return ppath.id_decode(id)
 def __iter__(self):
   for f in self._get_ids():
     yield id_decode(f)
Ejemplo n.º 6
0
 def __iter__(self):
     for f in self._get_ids():
         yield id_decode(f)