def METHOD_NAME(nfsPath):
    # This will remove any trailing "/" at the end of the given path
    path, basename = os.path.split(nfsPath)
    if basename:
        # If basename is not None then path will have lost that dir off the end.
        # Add it back so caller has full path to work with.
        path = path + "/" + basename
    return path