summaryrefslogtreecommitdiffstats
path: root/source/core/slang-io.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/core/slang-io.h')
-rw-r--r--source/core/slang-io.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/core/slang-io.h b/source/core/slang-io.h
index 492723602..3a5510566 100644
--- a/source/core/slang-io.h
+++ b/source/core/slang-io.h
@@ -126,6 +126,11 @@ namespace Slang
/// @param path Path to extract first element from
/// @return The first element of the path, or empty
static UnownedStringSlice getFirstElement(const UnownedStringSlice& path);
+
+ /// Remove a file or directory at specified path. The directory must be empty for it to be removed
+ /// @param path
+ /// @return SLANG_OK if file or directory is removed
+ static SlangResult remove(const String& path);
};
// Helper class to clean up temporary files on dtor