Re: [fpc-pascal] Re: FindFirst / FindNext with faHidden under Linux

2007-06-12 Thread Marco van de Voort
> Currently I am doing the following test to filter out the following > directories I consider hidden. > > Hidden directories are: . or '.' or '..' (in the following code you access s[1] without checking length first) > repeat > if (s[1] in ['.']) or (s = '..') then > continue

[fpc-pascal] Re: FindFirst / FindNext with faHidden under Linux

2007-06-12 Thread Graeme Geldenhuys
Currently I am doing the following test to filter out the following directories I consider hidden. Hidden directories are: . or '.' or '..' repeat if (s[1] in ['.']) or (s = '..') then continue; [...process non-hidden directories here...] until FindNext(...); Is there a be