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

Function getDirectory

src/system.cpp:261–268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

259
260
261std::string getDirectory(const std::string& path) {
262 try {
263 return fs::u8path(path).parent_path().generic_u8string();
264 }
265 catch (fs::filesystem_error& e) {
266 return "";
267 }
268}
269
270
271std::string getFilename(const std::string& path) {

Callers 6

saveAsDialogMethod · 0.85
loadDialogMethod · 0.85
loadSelectionDialogMethod · 0.85
saveSelectionDialogMethod · 0.85
loadDialogMethod · 0.85
saveDialogMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected