[fpc-devel] Patch to sysutils.FileExists (win32)

Luiz Américo pascalive at bol.com.br
Mon Oct 10 03:04:53 CEST 2005


While dealing with DirectoryExists bug, i noticed some misbehaviors from 
FileExists.
This patch implements FileExists that has the following advantages 
compared with the current implementation:

1 - Return false when the argument is a directory (like Delphi)
2 - Return false when passing '*' as argument (like Delphi)
3 - Its faster

It also modifies SetCurrentDir, CreateDir, RemoveDir to call the native 
win32 api function directly instead of calling indirectly through ChDir, 
MkDir and RmDir

Luiz
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sysutils.zip
Type: application/zip
Size: 733 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20051009/7b74e01d/attachment.zip>


More information about the fpc-devel mailing list