From 1dd3439bb66eae7b61a3ce22b72ae8668fec1b58 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 6 Aug 2020 16:36:59 +0200 Subject: Add lilv_remove() --- src/filesystem.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/filesystem.h') diff --git a/src/filesystem.h b/src/filesystem.h index f5ac35c..14f25d7 100644 --- a/src/filesystem.h +++ b/src/filesystem.h @@ -147,6 +147,10 @@ lilv_create_temporary_directory(const char* pattern); int lilv_create_directories(const char* dir_path); +/// Remove the file or empty directory at `path` +int +lilv_remove(const char* path); + /// Return true iff the given paths point to files with identical contents bool lilv_file_equals(const char* a_path, const char* b_path); -- cgit v1.2.1