mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-14 21:59:47 +02:00
* FileNewer should return true if the dest file does not exist.
This commit is contained in:
parent
1b4e733a66
commit
f73456a9d9
@ -7415,6 +7415,13 @@ begin
|
||||
exit;
|
||||
end;
|
||||
DD:=FileAge(Dest);
|
||||
{ Return true if dest file not found or not accessible }
|
||||
if DD=-1 then
|
||||
begin
|
||||
Result:=True;
|
||||
exit;
|
||||
end;
|
||||
|
||||
D1:=FileDateToDateTime(DS);
|
||||
D2:=FileDateToDateTime(DD);
|
||||
Log(vlDebug,SDbgComparingFileTimes,[Src,DateTimeToStr(D1),Dest,DateTimeToStr(D2)]);
|
||||
|
Loading…
Reference in New Issue
Block a user