UPD: Use shell rename when rename one file only

This commit is contained in:
Alexander Koblov 2016-09-18 11:33:14 +00:00
commit 10d06cae68

View file

@ -425,7 +425,8 @@ begin
{$ELSE}
if gUseShellForFileOperations and (UTF8Length(OldName) < MAX_PATH - 1) and (UTF8Length(NewName) < MAX_PATH - 1) then
if gUseShellForFileOperations and (FFullFilesTree.Count = 1) and
(UTF8Length(OldName) < MAX_PATH - 1) and (UTF8Length(NewName) < MAX_PATH - 1) then
begin
if ShellRename then
Result := sfprSuccess