Index: src/libchcore/TSubTaskScanDirectory.cpp =================================================================== diff -u -N -r835e0344e9677ff02eb3b539061c48c9f3a616ce -r7365307e6b78c9bc9db376635405e8c69d786381 --- src/libchcore/TSubTaskScanDirectory.cpp (.../TSubTaskScanDirectory.cpp) (revision 835e0344e9677ff02eb3b539061c48c9f3a616ce) +++ src/libchcore/TSubTaskScanDirectory.cpp (.../TSubTaskScanDirectory.cpp) (revision 7365307e6b78c9bc9db376635405e8c69d786381) @@ -139,19 +139,6 @@ strFormat.Replace(_T("%path"), rTaskDefinition.GetSourcePathAt(stIndex).ToString()); rLog.logi(strFormat); - // found file/folder - check if the dest name has been generated - if(!rarrSourcePathsInfo.GetAt(stIndex)->IsDestinationPathSet()) - { - // generate something - if dest folder == src folder - search for copy - if(rTaskDefinition.GetDestinationPath() == spFileInfo->GetFullFilePath().GetFileRoot()) - { - TSmartPath pathSubst = FindFreeSubstituteName(spFileInfo->GetFullFilePath(), rTaskDefinition.GetDestinationPath()); - rarrSourcePathsInfo.GetAt(stIndex)->SetDestinationPath(pathSubst); - } - else - rarrSourcePathsInfo.GetAt(stIndex)->SetDestinationPath(spFileInfo->GetFullFilePath().GetFileName()); - } - wchar_t wchSourceDriveLetter = spFileInfo->GetFullFilePath().GetDriveLetter(); // add if needed