MCPcopy Create free account
hub / github.com/HO-COOH/FastCopy / IsInSameDiskPartition

Function IsInSameDiskPartition

FastCopy/ShellCopy.cpp:9–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7namespace ShellCopy
8{
9 bool IsInSameDiskPartition(std::wstring_view source, std::wstring_view destination)
10 {
11 wchar_t path[2][MAX_PATH]{};
12 return GetVolumePathNameW(source.data(), path[0], MAX_PATH) &&
13 GetVolumePathNameW(destination.data(), path[1], MAX_PATH) &&
14 memcmp(path[0], path[1], sizeof(path[0])) == 0;
15 }
16
17 bool Move(std::wstring_view source, std::wstring_view destination)
18 {

Callers 1

canUseShellCopyMethod · 0.85

Calls 1

dataMethod · 0.80

Tested by

no test coverage detected