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

Get file name - failes with dropbox files #5

Closed Merwenus closed 1 year ago

Merwenus commented 4 years ago

Dropbox downloads pictures to my synology server and I want to move them to specific folder, but it seems this script does not get the original file name properly so it fails to rename and move.

https://logout.hu/dl/upc/2020-10/122010_6656.png

Original file name: 2020-09-27 12.07.37.jpg After getfilename: Error: File not found - 12.07.37.jpg

Gulivertx commented 1 year ago

please verify what exiftool give has information with the command exiftool ${FILE} | grep -a -i "create date" | head -1 | xargs.

EDIT : I think it's related to this issue escape