def METHOD_NAME(self, dirID):
    """Get the ID of the parent of a directory specified by ID"""
    if dirID == 0:
        return S_ERROR("Root directory ID given")
    req = "SELECT Parent FROM FC_DirectoryTree WHERE DirID=%d" % dirID
    result = self.db._query(req)
    if not result["OK"]:
        return result
    if not result["Value"]:
        return S_ERROR("No parent found")
    return S_OK(result["Value"][0][0])