13 #ifndef __STOUT_OS_WINDOWS_RENAME_HPP__ 14 #define __STOUT_OS_WINDOWS_RENAME_HPP__ 28 const std::string& from,
29 const std::string& to,
43 const BOOL result = ::MoveFileExW(
46 MOVEFILE_COPY_ALLOWED |
47 MOVEFILE_REPLACE_EXISTING |
48 (sync ? MOVEFILE_WRITE_THROUGH : 0));
52 "`os::rename` failed to move file '" + from +
"' to '" + to +
"'");
60 #endif // __STOUT_OS_WINDOWS_RENAME_HPP__ Definition: nothing.hpp:16
Definition: error.hpp:108
Definition: posix_signalhandler.hpp:23
Try< Nothing > rename(const std::string &from, const std::string &to, bool sync=false)
Definition: rename.hpp:40
std::wstring longpath(const std::string &path)
Definition: longpath.hpp:38