scitacean.filesystem.checksum_of_file#

scitacean.filesystem.checksum_of_file(path, *, algorithm)[source]#

Compute the checksum of a local file.

Parameters:
  • path (str | Path) – Path of the file on the local filesystem.

  • algorithm (str) – Hash algorithm to use. Can be any algorithm supported by hashlib.new().

Returns:

str – The hex digest of the hash.