MCPcopy Create free account
hub / github.com/VCVRack/Rack / rename

Function rename

src/system.cpp:132–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130
131
132bool rename(const std::string& srcPath, const std::string& destPath) {
133 try {
134 fs::rename(fs::u8path(srcPath), fs::u8path(destPath));
135 return true;
136 }
137 catch (fs::filesystem_error& e) {
138 return false;
139 }
140}
141
142
143bool copy(const std::string& srcPath, const std::string& destPath) {

Callers 4

saveFunction · 0.85
initUserDirFunction · 0.85
initFunction · 0.85
saveAutosaveMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected