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