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

Two potential additions #33

Open Aetherinox opened 7 months ago

Aetherinox commented 7 months ago

If you have enough time, two proposed features would be a huge bonus to this project.

  1. No specified input folder would result in the current working directory being selected

    • Primarily this is for the --verify argument
    • You'd have to add a manual entry to the excludeSpecList list which excludes DirHash.exe
  2. Being able to specify a single filename in a manner such as

    DirHash --verify "SHA256.txt" --file "somefile.zip"

    and have it check the hash for the specified is in the sha256.txt file. Instead of looping through all the entries.

Not sure of what direction you want to take this app in, but I figured I would throw these out there, because these are two features that would heavily help.

Unfortunately, C and C++ are not my primary languages. I could add these to my own build, but the biggest concern would the first suggestion.

You can set the current working directory, however, that would leave argv and argc an argument short which shifts everything unless you define the current working directory and then manually insert that back into argv and argc so that it can be used further down in the code. Otherwise you end up with the algorithm Blake3 being used every time.