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