Skip to content

How are the deduplicated filenames normalised? #4384

Closed Answered by tilusnet
tilusnet asked this question in Q&A
Discussion options

You must be logged in to vote

I'm answering my own question for the record, since I looked in the code.

A file's Canonical Name is computed using the file's creation date and Checksum.
The Creation Date is the timestamp of the image being taken, not necessarily the filesystem creation date -- check the fallback heuristic in the code.
The Checksum is the file's Castagnoli CRC32 checksum.

The final concatenation is here: it uses 'EEEEEEEE' if checksum is not the expected length of 8. The canonical name is prefixed with the YYYYMMDD_HHMMSS_ creation timestamp.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tilusnet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant