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

Function getFileSize

src/system.cpp:122–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120
121
122uint64_t getFileSize(const std::string& path) {
123 try {
124 return fs::file_size(fs::u8path(path));
125 }
126 catch (fs::filesystem_error& e) {
127 return 0;
128 }
129}
130
131
132bool rename(const std::string& srcPath, const std::string& destPath) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected