mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
c7ae8c8655
commit
aeedc2a619
2 changed files with 23 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue