diff options
Diffstat (limited to 'src/filesystem.h')
-rw-r--r-- | src/filesystem.h | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/filesystem.h b/src/filesystem.h index a82ec6c..1a8dc68 100644 --- a/src/filesystem.h +++ b/src/filesystem.h @@ -146,12 +146,21 @@ lilv_dir_for_each(const char* path, void (*f)(const char* path, const char* name, void* data)); /** - Create a unique temporary directory. + Create a unique temporary directory in a specific directory. The last six characters of `pattern` must be `XXXXXX` and will be replaced with random characters. This works roughly like mkdtemp, except the pattern - should only be a directory name, not a full path. The returned path will be - in a suitable system temporary directory. + should only be a directory name, not a full path. The created path will be + a child of the given parent directory. +*/ +char* +lilv_create_temporary_directory_in(const char* pattern, const char* parent); + +/** + Create a unique temporary directory. + + This is like lilv_create_temporary_directory_in(), except it creates the + directory in the system temporary directory. */ char* lilv_create_temporary_directory(const char* pattern); |