dusan-rychnovsky / bb

A collection of my personal babashka scripts.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

photos.clj - handle duplicate photos

dusan-rychnovsky opened this issue · comments

Currently, if there are multiple files with the same name in the source directory, the script will print an error and fail. In my experience, having multiple copies of the same photo (in different collections) is the norm, rather than exception. It would be better if the script could handle such case by e.g. appending a unique prefix to each duplicate filename.