2 #include <msp/core/except.h>
3 #include <msp/core/systemerror.h>
12 Path readlink(const Path &link)
15 throw unsupported("readlink");
18 Path realpath(const Path &path)
20 if(path.is_absolute())
26 void rename(const Path &from, const Path &to)
28 if(!MoveFileEx(from.c_str(), to.c_str(), MOVEFILE_REPLACE_EXISTING))
29 throw system_error("MoveFileEx");
32 void unlink(const Path &path)
34 if(!DeleteFile(path.c_str()))
35 throw system_error("DeleteFile");