Skip to content

Combute hash/checksum of files, insert file hash/checksum into file name

License

Notifications You must be signed in to change notification settings

flopp/go-filehash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-filehash

Compute hash/checksum of files, insert file hash/checksum into file name while copying

import "filehash"

hash, err := filehash.Compute("myfile.txt")
// Returns "95c39c37ef89acb2", nil

newName, err := filehash.Copy("myfile.txt", "out/myfile-HASH.txt", "HASH")
// Copies "myfile.txt" to "out/myfile-95c39c37ef89acb2.txt"
// Returns "out/myfile-95c39c37ef89acb2.txt", nil

About

Combute hash/checksum of files, insert file hash/checksum into file name

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages