MCPcopy Create free account
hub / github.com/Selectively11/CloudRedirect / Utf8ToPath

Method Utf8ToPath

src/platform/linux/platform_linux.cpp:15–17  ·  view source on GitHub ↗

On Linux, paths are already UTF-8. These are identity operations.

Source from the content-addressed store, hash-verified

13public:
14 // On Linux, paths are already UTF-8. These are identity operations.
15 std::filesystem::path Utf8ToPath(const std::string& utf8) override {
16 return std::filesystem::path(utf8);
17 }
18
19 std::string PathToUtf8(const std::filesystem::path& p) override {
20 return p.string();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected