I've written stuff in freepascal that can load and parse a directory and decipher if it’s a directory or a file - even on POSIX (linux - Fedora 5).
I'm not saying this is a big achievement - but perhaps - at an expense of speed - but in definitive returned results - I wonder if it would be prudent to add a filexists routine or make the current one - do this type of "thorugh checks". I am aware of running to issue though with permissions - but these usually make sense. If the file doesn't exist - but does - you don't have write permissions. I made a routine that goes through a couple steps - (probably the wrong way but is portable) to both READ ONLY and READ WRITE (no actual writing) the file just to see if I have read access and alternatively read/write. This is great because if I need to verify a configuration file exists - I do not necessarily need write permission ... and sometimes you do. Having a little more info allows one to make more detailed error log files - and user interface "messages" so users and administrators - heck - us heads-down-coders can figure out what and why quickly when something doesn't go as planned. Best Regards, Jason P Sage [EMAIL PROTECTED] http://www.jegas.com -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.16.3/614 - Release Date: 1/2/2007 2:58 PM _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal