diff options
Diffstat (limited to 'lib/util/util.h')
-rw-r--r-- | lib/util/util.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/util/util.h b/lib/util/util.h index b9734b07c8..7f0de26781 100644 --- a/lib/util/util.h +++ b/lib/util/util.h @@ -623,6 +623,11 @@ bool file_compare(const char *path1, const char *path2); _PUBLIC_ const char *tmpdir(void); /** + * Creates and immediately unlinks a file. Returns open file descriptor. + **/ +_PUBLIC_ int create_unlink_tmp(const char *dir); + +/** Check if a file exists - call vfs_file_exist for samba files. **/ _PUBLIC_ bool file_exist(const char *fname); |