[*] Ooops: acd8f6cf
This commit is contained in:
parent
019cba1677
commit
049de14090
@ -506,15 +506,31 @@ namespace Aurora::IO::FS
|
||||
|
||||
for (const auto &[rawPath, rawPathDest] : now)
|
||||
{
|
||||
auto rawPathA = NormalizePathRet(rawPath);
|
||||
|
||||
if (rawPathA.empty())
|
||||
{
|
||||
out->errorCopyPaths.push_back(rawPath);
|
||||
continue;
|
||||
}
|
||||
|
||||
#if defined(AURORA_PLATFORM_WIN32)
|
||||
{
|
||||
auto winLinkA = AuLocale::ConvertFromUTF8(rawPath);
|
||||
auto winLinkB = AuLocale::ConvertFromUTF8(rawPathDest);
|
||||
if (::MoveFileExW(winLinkA.c_str(), winLinkB.c_str(), MOVEFILE_WRITE_THROUGH))
|
||||
auto winLinkA = AuLocale::ConvertFromUTF8(rawPathA);
|
||||
auto winLinkB = AuLocale::ConvertFromUTF8(NormalizePathRet(rawPathDest));
|
||||
|
||||
if (winLinkA.empty() ||
|
||||
winLinkB.empty())
|
||||
{
|
||||
out->errorCopyPaths.push_back(rawPath);
|
||||
continue;
|
||||
}
|
||||
|
||||
if (::MoveFileExW(winLinkA.c_str(), winLinkB.c_str(), MOVEFILE_WRITE_THROUGH))
|
||||
{
|
||||
out->copyPathsSuccess.push_back(rawPath);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
AuList<AuString> files;
|
||||
|
Loading…
Reference in New Issue
Block a user