exists#

barecat.Index.exists(path)#

Check if a file or directory exists in the index.

Parameters:

path – Path of the file or directory. It is normalized before the check.

Returns:

True if a file or directory with the given path exists, False otherwise.