Re: "." and ".." returned by dir()
- Posted by Juergen Luethje <j.lue at gmx.de> Sep 01, 2006
- 589 views
don cole wrote: <snip> > 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. Yes, I'm using similar code. I just had the idea to skip the first 2 elemnts of dir()'s result, when its argument is a directory that is not the root dir. When we have ...
object list list = dir(mydir) if atom(list) then ... blah, blah ...
... then we could use
for i = 3 to length(list) do
instead of
for i = 1 to length(list) do if compare(...
Not soooooo important, I know. :) Regards, Juergen