diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-09-26 12:35:21 -0400 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-09-26 12:35:21 -0400 |
commit | 8e7645614928ddd90a4bc9cc89d4f2f7fc5d7ea8 (patch) | |
tree | 6618105b15cd9fdfe2d21452332e8888968e5e60 /dive.h | |
parent | b1dca1176f567318759f03e3a34e5c1628f07e9e (diff) | |
download | subsurface-8e7645614928ddd90a4bc9cc89d4f2f7fc5d7ea8.tar.gz |
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>
Diffstat (limited to 'dive.h')
-rw-r--r-- | dive.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |