Skip to content

Simple package to compute a single deterministic hash of the file contents of a directory.

License

Notifications You must be signed in to change notification settings

romdr/checksumdir

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Checksumdir

This is a simple module to create a single hash for a directory of files, taking into account only file contents, ignoring any metadata such as file name.

Usage

from checksumdir import dirhash

directory = '/path/to/directory/'
md5hash = dirhash(directory, 'md5')
sha1hash = dirhash(directory, 'sha1')

Or to use the CLI:

# Defaults to md5
$ checksumdir /path/to/directory

# Create sha1 hash
$ checksumdir -a sha1 /path/to/directory

About

Simple package to compute a single deterministic hash of the file contents of a directory.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%