FIX: Copy directory date/time

This commit is contained in:
Alexander Koblov 2010-08-21 18:47:13 +00:00
commit bf6fb4051f

View file

@ -874,9 +874,10 @@ begin
// Create target directory.
if mbForceDirectory(AbsoluteTargetFileName) then
begin
FileCopyAttr(aNode.TheFile.FullPath, AbsoluteTargetFileName, False);
// Copy/Move all files inside.
Result := ProcessNode(aNode, IncludeTrailingPathDelimiter(AbsoluteTargetFileName));
// Copy attributes after copy/move directory contents, because this operation can change date/time
FileCopyAttr(aNode.TheFile.FullPath, AbsoluteTargetFileName, False);
end
else
begin