diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-09-23 05:08:35 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-09-23 05:10:43 -0700 |
commit | aeedc2a619564a957c8fca000a7fa0148e3d78b1 (patch) | |
tree | 19792af0b898d1d7cab771e55b4c766e031c0cd7 /qthelperfromc.h | |
parent | c7ae8c8655a618de92ca6072dbe51dcea4493cb7 (diff) | |
download | subsurface-aeedc2a619564a957c8fca000a7fa0148e3d78b1.tar.gz |
Add helper function to safely move away file or directory
Try numberical suffix until you find one that isn't used yet.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qthelperfromc.h')
-rw-r--r-- | qthelperfromc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qthelperfromc.h b/qthelperfromc.h index d64bfc04a..21b2a6f80 100644 --- a/qthelperfromc.h +++ b/qthelperfromc.h @@ -10,6 +10,7 @@ char *get_file_name(const char *fileName); void copy_image_and_overwrite(const char *cfileName, const char *path, const char *cnewName); char *hashstring(char *filename); bool picture_exists(struct picture *picture); +char *move_away(const char *path); const char *local_file_path(struct picture *picture); void savePictureLocal(struct picture *picture, const char *data, int len); void cache_picture(struct picture *picture); |