mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
cloudstorage: create consistent local directory names
With the new names for the cloud server we'd get different local cache directory names depending on which server gets used. In order to avoid that, normalize the name before generating the hash that determines the local directory name. Additionally, the old code had an extra '/' in the URL, due to the way the URL was assembled. Again, to match the existing hash for people upgrading from older Subsurface versions, add that to our normalized name as well. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
7fa031b648
commit
cfe20ee5f4
3 changed files with 24 additions and 2 deletions
|
@ -147,6 +147,7 @@ void copy_image_and_overwrite(const char *cfileName, const char *path, const cha
|
|||
char *move_away(const char *path);
|
||||
const char *local_file_path(struct picture *picture);
|
||||
char *cloud_url();
|
||||
const char *normalize_cloud_name(const char *remote_in);
|
||||
char *hashfile_name_string();
|
||||
char *picturedir_string();
|
||||
const char *subsurface_user_agent();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue