Esempio n. 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
Esempio n. 2
0
    def depth_from(self, root):
        """Returns the depth from one directory to another"""

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

        return dir_depth(self.path) - dir_depth(root) - 1
Esempio n. 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