Esempio n. 1
0
 def directory(self):
     return path_strip(self.name, get_directory())
Esempio n. 2
0
 def folder(self):
     return os.path.dirname(
         path_strip(os.path.join(self.head, ''), get_directory()))
Esempio n. 3
0
 def _folder(self):
     return os.path.dirname(
         path_strip(os.path.join(self.head, ''), DIRECTORY))
Esempio n. 4
0
 def path_relative_directory(self):
     """ path relative to the path returned by get_directory() """
     return path_strip(self.name, get_directory()).lstrip("/")
Esempio n. 5
0
 def _path_relative_directory(self):
     "path relative to DIRECTORY"
     return path_strip(self.path, DIRECTORY)
Esempio n. 6
0
 def _directory(self):
     return path_strip(self.path, DIRECTORY)
Esempio n. 7
0
 def directory(self):
     return path_strip(self.path, get_directory())
Esempio n. 8
0
 def folder(self):
     return os.path.dirname(
         path_strip(os.path.join(self.head, ''), get_directory()))
Esempio n. 9
0
 def _directory(self):
     return path_strip(self.path, get_directory())
Esempio n. 10
0
 def path_relative_directory(self):
     """ path relative to the path returned by get_directory() """
     return path_strip(self.path, get_directory()).lstrip("/")
Esempio n. 11
0
 def _path_relative_directory(self):
     "path relative to the path returned by get_directory()"
     return path_strip(self.path, get_directory()).lstrip("/")
Esempio n. 12
0
 def _folder(self):
     return os.path.dirname(path_strip(os.path.join(self.head,''), DIRECTORY))
Esempio n. 13
0
 def _directory(self):
     return path_strip(self.path, DIRECTORY)
Esempio n. 14
0
 def _path_relative_directory(self):
     "path relative to DIRECTORY"
     return path_strip(self.path, DIRECTORY)
Esempio n. 15
0
 def _path_relative_directory(self):
     "path relative to the path returned by get_directory()"
     return path_strip(self.path, get_directory())