lookup_file#

barecat.Index.lookup_file(path, normalized=False)[source]#

Look up a file by its path.

Parameters:
  • path (str) – Path of the file.

  • normalized (bool) – Whether the path is already normalized. If False, the path will be normalized before the lookup.

Returns:

The file info object.

Raises:

FileNotFoundBarecatError – If the file is not found.

Return type:

barecat.core.types.BarecatFileInfo