MCPcopy Create free account
hub / github.com/78/tenbox / PathToUtf8

Function PathToUtf8

src/daemon/rpc_server.cpp:33–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33std::string PathToUtf8(const fs::path& path) {
34 auto value = path.u8string();
35 return std::string(reinterpret_cast<const char*>(value.data()), value.size());
36}
37
38bool CopyIfProvided(const std::string& source, const fs::path& destination_dir, std::string* out, std::string* error) {
39 if (source.empty()) return true;

Callers 2

CopyIfProvidedFunction · 0.70
CreateVmMethod · 0.70

Calls 2

dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected