pablo33 / Shotwell-event2folder

Shotwell event to folder structure

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Replace special chars on filenames.

pablo33 opened this issue · comments

While doing backup with "Lucky Backup", name files that contains a colon haracter (:) raise in error and cannot be backed up on the destination folder.

It could be nice if some especial chars on filenames could be replaced automatically. This prevents issues like this or even could prevent errors by simply copying the files manually to another filesystem.

Ok, let's start with a function that replaces this set of chars / \ : * ? " < > | by an underscore _

Done, now not allowed characters in events and filenames will be replaced as an underscore character '_'.
It only affects to the path of the file, Events' name in the database will remain.