OmegaPhil / animecheck

Commandline CRC32, MD5 and eD2k-based hashing script also capable of reading and creating SFV and MD5 checksum files and generating eD2k links. This is an initial foray into python and github
GNU General Public License v3.0
46 stars 5 forks source link

Optional recursive mode #25

Closed darealshinji closed 11 years ago

darealshinji commented 11 years ago

One thing that could be implemented would be an option to not read the files in the sub-directories. I mean something like this:

!/bin/bash

find * -maxdepth 0 -type f | while read file do crc32=crc32 "$file" name=basename "${file}" echo "$crc32 $name" done

Another example would be the command line program cfv, which allows to enable or disable recursive mode.

Hope you keep up the good work!

OmegaPhil commented 11 years ago

OK, it should be trivial enough (without looking at the code) to be able to disable recursion. I want to keep it on by default as this is my expected behaviour and naturally how it behaves currently.

If more people want this with a configurable recursion depth then I could make it more fancy.