summaryrefslogtreecommitdiff
path: root/doc/bugs/Wrong_backend_extension_in_files_with_multiple_dots/comment_1_e7b8aca1e65affc993572003b0f1b532._comment
blob: a997f73ba48f2bfdb4e97aa6a74012abdbc4e92c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
[[!comment format=mdwn
 username="joey"
 subject="""comment 1"""
 date="2017-02-20T15:53:29Z"
 content="""
It is indeed to support things like `.tar.gz`, `.pdf.gz` etc.

There's really no way to distinguish between what's desired to be part of
the extension and not, other than heuristics. The heuristics for this are
fairly narrow. Other than not allowing purely numeric parts in extenssions,
or only taking the last extension, I don't see any change that could help
with this case.

Bear in mind that the only reason the extension is included at all is
because some strange programs, especially on OSX, follow symlinks and look
at the symlink of the link destination to try to guess what kind of file it
is. There's no good reason for a program to do that, and if you're not
using programs with that problem, you can just use the SHA256 backend and
leave off the extensions.

Bearing in mind that the extension is part of a big long ugly key name that
you don't generally need to do anything with, including an extra short
possibly not-really-extension part doesn't seem like a usability problem.
The only real problem would be if you had two files with the same content,
but different "extensions", since this would prevent them being
deduplicated to the same key.
"""]]