'Returns a VFS node or an item ID located at the path given.
If the path does not exist, raises a'

def _resolve_path(self, path):

    components = path.split(u'/')
    node = self.tree
    for component in components:
        if (not component):
            continue
        if isinstance(node, int):
            raise ArgumentNotFoundError()
        if (component in node.files):
            node = node.files[component]
        elif (component in node.dirs):
            node = node.dirs[component]
        else:
            raise ArgumentNotFoundError()
    return node
