mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-13 10:49:17 +02:00
* Fixed FileExists for >2GB files
git-svn-id: trunk@5929 -
This commit is contained in:
parent
227ec1012d
commit
ea0fc335d1
@ -269,10 +269,10 @@ end;
|
||||
|
||||
Function FileExists (Const FileName : String) : Boolean;
|
||||
|
||||
Var Info : Stat;
|
||||
|
||||
begin
|
||||
FileExists:=fpstat(filename,Info)>=0;
|
||||
// Don't use stat. It fails on files >2 GB.
|
||||
// Access obeys the same access rules, so the result should be the same.
|
||||
FileExists:=fpAccess(filename,F_OK)=0;
|
||||
end;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user