MCPcopy Create free account
hub / github.com/clechasseur/pathcopycopy / GetPath

Method GetPath

PathCopyCopy/plugins/src/UnixPathPlugin.cpp:64–72  ·  view source on GitHub ↗

Returns the Unix path of the specified file. @param p_File File path. @return File path with backslashes replaced by forward slashes.

Source from the content-addressed store, hash-verified

62 // @return File path with backslashes replaced by forward slashes.
63 //
64 std::wstring UnixPathPlugin::GetPath(const std::wstring& p_File) const
65 {
66 // Call parent to get long path.
67 std::wstring path = LongPathPlugin::GetPath(p_File);
68
69 // Replace all backslashes with forward slashes and return the path.
70 std::replace(path.begin(), path.end(), L'\\', L'/');
71 return path;
72 }
73
74 //
75 // Protected constructor with custom description and help text resources.

Callers

nothing calls this directly

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected