Currently, if there are no files with a particular date (because all the files are skipped, being the wrong type of file - image / video - or being outside the specified date range), the script creates an empty folder in the destination directory. In my use case, I shoot very few videos, but lots of images, and move them to different destinations. I don't need lots of empty date directories in the video destination folder, corresponding to the dates where there were images.
Would it be possible add a switch to delay the creation of a directory until the first file is going to be placed into it?
Currently, if there are no files with a particular date (because all the files are skipped, being the wrong type of file - image / video - or being outside the specified date range), the script creates an empty folder in the destination directory. In my use case, I shoot very few videos, but lots of images, and move them to different destinations. I don't need lots of empty date directories in the video destination folder, corresponding to the dates where there were images.
Would it be possible add a switch to delay the creation of a directory until the first file is going to be placed into it?