idrassi / DirHash

Windows command line utility to compute hash of directories and files
BSD 3-Clause "New" or "Revised" License
111 stars 11 forks source link

Use the last folder in DirectoryOrFilePath in the output file #27

Closed a84r7a3rga76fg closed 1 year ago

a84r7a3rga76fg commented 1 year ago

I'd like to see an option that'll put the last folder in DirectoryOrFilePath in the output file e.g. the DirectoryOrFilePath is C:\test\archive and the output file includes "archive" i.e. hash archive\etc\etc.zip.

idrassi commented 1 year ago

I have pushed a change to implement this feature by adding a new switch -includeLastDir: https://github.com/idrassi/DirHash/commit/d8d2b949ddeca811d3f67f36e29012cd0f5ab643

I will publish an official release soon that includes it.