Naming convention for media file?

Hi!

is there any naming convention to make filenames inside collection.media unique? If I understand it correctly, the structure is flat, i. e. I cannot create directories. At the moment I am using the add-on name as a prefix. Is there a better way to do this?

Cheers,
Guido

If you attach a file with the same name (from inside the app), and it’s the same file – Anki recognizes that and doesn’t re-add the file to collection.media.

If you attach a file with the same name, and it’s a different file – Anki appends an identifying hash to the filename to make it unique in collection.media, like -9d14e6116a6b19e3a21b29a10edf36b7097216ca.

5 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.