diff options
Diffstat (limited to 'src/util.cpp')
| -rw-r--r-- | src/util.cpp | 11 |
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; + } +} |
