mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Cloud storage: try to work around weird Windows rename issue
In some cases the rename of the cache directory would fail in my testing. Based on code that Lubomir provided, this tries a Windows specific implementation of folder rename if the QDir based one fails for some reason - but obviously only if we are running on Windows. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
b1dca1176f
commit
8e76456149
3 changed files with 51 additions and 1 deletions
1
dive.h
1
dive.h
|
@ -682,6 +682,7 @@ struct user_info {
|
|||
|
||||
extern void subsurface_user_info(struct user_info *);
|
||||
extern int subsurface_rename(const char *path, const char *newpath);
|
||||
extern int subsurface_dir_rename(const char *path, const char *newpath);
|
||||
extern int subsurface_open(const char *path, int oflags, mode_t mode);
|
||||
extern FILE *subsurface_fopen(const char *path, const char *mode);
|
||||
extern void *subsurface_opendir(const char *path);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue