예제 #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())