update_mtime#

barecat.Index.update_mtime(path, mtime_ns)#

Update the modification time of a file or directory.

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

  • mtime_ns (int) – New modification time in nanoseconds since the Unix epoch.

Raises:

FileNotFoundBarecatError – If the file or directory is not found.