Gulivertx / synology-photos-auto-sort

Script to use exiftool on a Synology NAS or any bash environment to auto sort images from a folder
MIT License
54 stars 16 forks source link

File not found error caused by spaces in the file names #6

Closed cristianbaciu closed 1 year ago

cristianbaciu commented 3 years ago

The script will fail to move the files if there are spaces in the file paths or in the file names of the pictures.

You will get an error like "Error: File not found - 2908.JPG".

The fix is to escape the spaces for all variables.

Gulivertx commented 1 year ago

thank's for report, ok I will mention that in the readme, currently I do not plane any change for that, but if you want I will appreciate PR :)