Re: "." and ".." returned by dir()
- Posted by don cole <doncole at pacbell.net> Aug 31, 2006
- 610 views
Juergen Luethje wrote: > > Hello Rob and all, > > in the documentation of dir() it reads: > <quote> > If st names a *directory* you may have entries for "." and ".." > </quote> > > After my experience, those entries are normally at the _beginning_ > of the list which is returned by dir(). Can I rely on the assumption > that this is _always_ the case? > > Regards, > Juergen Hello Juergen, I always use, if compare(d[x][1],".")=0 or compare(d[x][1],"..")=0 then --ignore end if So I don't really care about the order. Don Cole