[*] Win32: fast move directory
This commit is contained in:
parent
9ba049d485
commit
acd8f6cf0b
@ -506,6 +506,17 @@ namespace Aurora::IO::FS
|
|||||||
|
|
||||||
for (const auto &[rawPath, rawPathDest] : now)
|
for (const auto &[rawPath, rawPathDest] : now)
|
||||||
{
|
{
|
||||||
|
#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))
|
||||||
|
{
|
||||||
|
out->errorCopyPaths.push_back(rawPath);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||
AuList<AuString> files;
|
AuList<AuString> files;
|
||||||
if (AuFS::FilesInDirectory(rawPath, files))
|
if (AuFS::FilesInDirectory(rawPath, files))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user