summaryrefslogtreecommitdiff
path: root/src/util.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan.goodliffe@octal.co.uk>2026-05-20 17:03:23 +0100
committerDan Goodliffe <dan.goodliffe@octal.co.uk>2026-05-20 17:04:30 +0100
commitbca5ac479de5721e354b70d627fb9654bd94bdee (patch)
tree0d2b011cd3b24fcfba8cbb50df1283ca68434ca1 /src/util.cpp
parent161f32ebaea5988fe97ad03ad669eca2222e2a54 (diff)
downloadwebstat-bca5ac479de5721e354b70d627fb9654bd94bdee.tar.bz2
webstat-bca5ac479de5721e354b70d627fb9654bd94bdee.tar.xz
webstat-bca5ac479de5721e354b70d627fb9654bd94bdee.zip
Switch to std::fstream and std::print for parkLogLines
Diffstat (limited to 'src/util.cpp')
-rw-r--r--src/util.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/util.cpp b/src/util.cpp
new file mode 100644
index 0000000..cdce30e
--- /dev/null
+++ b/src/util.cpp
@@ -0,0 +1,11 @@
+#include "util.hpp"
+
+namespace WebStat {
+ std::error_code
+ renameNoExcept(const std::filesystem::path & path, const std::filesystem::path & finalPath) noexcept
+ {
+ std::error_code error;
+ std::filesystem::rename(path, finalPath, error);
+ return error;
+ }
+}