summaryrefslogtreecommitdiff
path: root/src/util.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.hpp')
-rw-r--r--src/util.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util.hpp b/src/util.hpp
index 5cac5a3..d5e2482 100644
--- a/src/util.hpp
+++ b/src/util.hpp
@@ -2,6 +2,7 @@
#include <chrono>
#include <command.h>
+#include <filesystem>
#include <scn/scan.h>
#include <shared_mutex>
#include <tuple>
@@ -144,4 +145,7 @@ namespace WebStat {
ValueType value;
mutable MutexType mutex;
};
+
+ std::error_code renameNoExcept(
+ const std::filesystem::path & path, const std::filesystem::path & finalPath) noexcept;
}