def get_path_entry(self, path):
        g_logger.debug("get_path_entry: path: %s", path)
        imm, slash, rest = self._split_path(path)
        if slash == "":
            return self.get_child(path)
        else:
            if rest == "":
                return self

            child = self.get_child(imm)
            if not isinstance(child, NTFSDirectory):
                raise DirectoryDoesNotExistError()

            return child.get_path_entry(rest)
dataset/ETHPy150Open williballenthin/python-ntfs/ntfs/filesystem/__init__.py/NTFSDirectory.get_path_entry/original