[Gambas-user] Dir() function is not reliable

Benoît Minisini gambas at ...1...
Mon Feb 11 20:00:01 CET 2013


Le 11/02/2013 19:45, M. Cs. a écrit :
> Hi Benoit, I think I found the error:
> I was using Dir(DirView1.Current, *"*.*"*, gb.File).Sort() instead of
> Dir(DirView1.Current,* "*"*, gb.File).Sort().
> Although I don't understand why "*.*" wasn't correct.
>
> Csaba

"*" means every file, whereas "*.*" means every file with a dot inside.

Beware that the "ls" command does not return exactly the same thing with 
the "*.*" pattern (it ignores hidden files by default, i.e. files 
beginning with a dot).

Regards,

-- 
Benoît Minisini




More information about the User mailing list