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

Method IsUNCPath

PathCopyCopy/src/PluginUtils.cpp:200–203  ·  view source on GitHub ↗

Checks if the given path is a UNC path in the form \\server\share[\...] @param p_FilePath Path to verify. @return true if the path is a UNC path.

Source from the content-addressed store, hash-verified

198 // @return true if the path is a UNC path.
199 //
200 bool PluginUtils::IsUNCPath(const std::wstring& p_FilePath) noexcept
201 {
202 return p_FilePath.find(L"\\\\") == 0 && p_FilePath.find(L'\\', 2) > 2;
203 }
204
205 //
206 // Checks if the given file resides on a mapped network drive.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected