summaryrefslogtreecommitdiff
path: root/src/common/file_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/file_util.h')
-rw-r--r--src/common/file_util.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/common/file_util.h b/src/common/file_util.h
index c2ee7ca27..cf006cc9d 100644
--- a/src/common/file_util.h
+++ b/src/common/file_util.h
@@ -54,8 +54,14 @@ enum class UserPath {
54// Returns true if successful, or path already exists. 54// Returns true if successful, or path already exists.
55bool CreateDir(const std::filesystem::path& path); 55bool CreateDir(const std::filesystem::path& path);
56 56
57// Creates the full path of path. Returns true on success 57// Create all directories in path
58bool CreateFullPath(const std::filesystem::path& path); 58// Returns true if successful, or path already exists.
59[[nodiscard("Directory creation can fail and must be tested")]] bool CreateDirs(
60 const std::filesystem::path& path);
61
62// Creates directories in path. Returns true on success.
63[[deprecated("This function is deprecated, use CreateDirs")]] bool CreateFullPath(
64 const std::filesystem::path& path);
59 65
60// Deletes a given file at the path. 66// Deletes a given file at the path.
61// This will also delete empty directories. 67// This will also delete empty directories.