

def get_path_entry(self, path):
    g_logger.debug('get_path_entry: path: %s', rest)
    (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/VarMisuse@18/35 `path`->`rest`