Closed olifre closed 1 year ago
It makes sense to consider use the whole path, but I don't like the use of the path itself as a filename (it usually contains special characters like /
). Using the hash of the path seems more robust, there already is an implementation of SHA-1 in the repo.
Good point! I've updated the PR accordingly, i.e. now the full path is still used for URLs, but any remote paths are always hashed not matter the length.
Looks good, thanks
The actual filename part is often similar for different URLs, so use the full path and let it be cleaned or hashed accordingly.
Closes #44