arfoll / unrarall

bash script to unrar everything and cleanup in a given directory
GNU General Public License v3.0
261 stars 68 forks source link

find: `./Sample': No such file or directory #22

Open lgforsberg opened 9 years ago

lgforsberg commented 9 years ago

Hey,

Thanks for the effort you guys have put in to this script! I found this script after getting to !#/bin/bash of a my own hack to do the same thing so you guys really saved me there! One thing I find odd however is that when using the following command-line:

cd /storage/download/finished; /usr/local/bin/unrarall/unrarall --clean=all /storage/download/finished;

I get the following:

Working over directory "/storage/download/finished" Running cksfv using totally_legal_thing_to_rar.s15e06.720p.sfv Extracting (e) "/storage/download/finished/totally_legal_thing_to_rar.s15e06.720p.rar"...ok Running hooks...covers_folders nfo osx_junk rar sample_folders find: `./Sample': No such file or directory sample_videos windows_junk empty_folders Finished running hooks

Everything works just as expected but the "find: `./Sample': No such file or directory" seems out of place. The rest of the feedback is from the script but that one thing comes from find itself.

From the start there is indeed a "Sample" folder which contains a sample video file and the sample file and folder are deleted during the run.

Any ideas on why this is happening? The script is being run on a Raspberry PI 2, Model B and a fresh Raspbian install. I have peeked at the code but haven't found anything obvious as of yet.

Regards, LG

lgforsberg commented 9 years ago

I did not want to include it in my initial post but to me it seems like the sample_folder hook does the job of the sample_video hook. Then when its time for the sample_video hook to be processed there is no sample folder to look in for the sample video.

If this is the case the problem could be solved by either making sure that sample_video is always run before sample_folder if the two or all is given. Another possible solution would be to suppress the output from find and leave it as it is...