def METHOD_NAME(self, path):
    """Get the parent ID of the given directory"""
    parent_dir = os.path.dirname(path)
    if parent_dir == "/":
        return S_OK(0)
    return self.findDir(parent_dir)