FileExists returns true for folders under Linux
Original Reporter info from Mantis: Stephano
-
Reporter name:
Original Reporter info from Mantis: Stephano
- Reporter name:
Description:
FileExists('../') for example returns true under Linux. While it is true that folders are files under Linux, letting FileExists behave this way would break cross platform compatibility as Windows returns False.
It is very easy to be misled by:
FileExists(Path+Filename) where Filename happens to be ''.
If this is not corrected, the documentation should be clear about this.
Mantis conversion info:
- Mantis ID: 16938
- Fixed in version: 2.6.0
- Fixed in revision: 678 (#4626d6e9)
- Target version: 2.4.2