mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-29 09:50:31 +02:00
LCL: CopyFile: fixed setting file time on *nix (issue #11912)
git-svn-id: trunk@16111 -
This commit is contained in:
parent
145802bcea
commit
520a6b0648
@ -1093,7 +1093,7 @@ begin
|
||||
try
|
||||
DestFS.CopyFrom(SrcFS,SrcFS.Size);
|
||||
if PreserveTime then
|
||||
FileSetDate(DestFS.Handle, FileGetDate(SrcFS.Handle));
|
||||
FileSetDate(DestFilename, FileGetDate(SrcFS.Handle));
|
||||
finally
|
||||
DestFS.Free;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user