Skip to content

Commit

Permalink
* Added to deletedirector so when error 32 (some other process using …
Browse files Browse the repository at this point in the history
…file) happens it reports which process
  • Loading branch information
hkarlsson committed Jun 17, 2021
1 parent 1425757 commit 28d1001
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/EACopyShared.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -805,7 +805,7 @@ findNextFile(FindFileHandle handle, FindFileData& findFileData, IOStats& ioStats
{
TimerScope _(ioStats.findFileTime);
#if defined(_WIN32)
return FindNextFileW(handle, (WIN32_FIND_DATAW*)&findFileData);
return FindNextFileW(handle, (WIN32_FIND_DATAW*)&findFileData) != 0;
#else
auto dir = (DIR*)handle;
auto& fd = *(FindFileDataLinux*)&findFileData;
Expand Down Expand Up @@ -1253,7 +1253,7 @@ bool deleteAllFiles(const wchar_t* directory, bool& outPathFound, IOStats& ioSta
uint error = GetLastError();
if (isError(error, errorOnMissingFile))
{
logErrorf(L"Trying to remove reparse point while ensuring directory %ls: %ls", directory, getErrorText(error).c_str());
logErrorf(L"Trying to remove reparse point while ensuring directory %ls: %ls", directory, getErrorText(fullName2, error).c_str());
return false;
}
}
Expand Down Expand Up @@ -1306,7 +1306,7 @@ bool deleteDirectory(const wchar_t* directory, IOStats& ioStats, bool errorOnMis
if (!isError(error, errorOnMissingFile))
return true;

logErrorf(L"Trying to remove directory %ls: %ls", validDirectory, getErrorText(error).c_str());
logErrorf(L"Trying to remove directory %ls: %ls", validDirectory, getErrorText(validDirectory, error).c_str());
return false;
}

Expand Down

0 comments on commit 28d1001

Please sign in to comment.