def depth_from(self, root): """Return the relative depth of the directory from the givenroot""" return dir_depth(self.path) - dir_depth(root) - 1
def depth_from(self, root): """Returns the depth from one directory to another""" return dir_depth(self.path) - dir_depth(root) - 1