示例#1
0
    def depth_from(self, root):
        """Return the relative depth of the directory from the givenroot"""

        return dir_depth(self.path) - dir_depth(root) - 1
示例#2
0
    def depth_from(self, root):
        """Returns the depth from one directory to another"""

        return dir_depth(self.path) - dir_depth(root) - 1
示例#3
0
    def depth_from(self, root):
        """Returns the depth from one directory to another"""

        return dir_depth(self.path) - dir_depth(root) - 1
示例#4
0
    def depth_from(self, root):
        """Return the relative depth of the directory from the givenroot"""

        return dir_depth(self.path) - dir_depth(root) - 1