Novell drives may not have . and .. in the directory listing (I think it
depends on a setting on the server).  So, the answer is No, it is not safe.
In fact, you cannot even guarantee that . and .. will be the first two
entry - they may be elsewhere.

Regards,
Dennis.

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of Grant Black
> Sent: Thursday, 17 February 2000 14:05
> To: Multiple recipients of list delphi
> Subject: [DUG]: Directory listing
>
>
> I noticed a bit of code recently that returns a list of files
> in a directory
> using FindFirst ... FindNext procedures.
>
> The programmer then strips the first two items from the
> string list with the
> assumption being that these will always be '.' and '..' directories.
>
> Safe assumption?
>
> (I will probably just change the FindFirst to return
> faAnyFiles-faDirectories which also works but just wondered..)
>
> Grant Black
> Team Leader - PC Tools
> SmartMove (NZ) Ltd
> Phone:   +64 9 361-0219 extn 719
> Email:     [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>
> Web :
> http://www.smartmove.co.nz <http://www.smartmove.co.nz/>
>
> --------------------------------------------------------------
> -------------
>     New Zealand Delphi Users group - Delphi List -
> [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
>

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to