[Gambas-user] Small problem with .insert
Benoît Minisini
gambas at ...1...
Sun Dec 9 21:25:33 CET 2012
Le 09/12/2012 13:52, Gianni Piccini a écrit :
> I would to put in an array lists of some kinds of files. Code is similar
> to following lines, "prints" are there to check what's happening..
> question is, there is any way to use "insert" and read those hidden
> files? This, on Gambas 3.1.1 and Debian.
>
> dim files as string[]
>
> files = RDir(directory, "*.html", gb.file)
> print files.length
> ' prints 12250, correct
>
> files.Insert(RDir(directory, "*.css", gb.file))
> print files.length
> 'prints 12255, 5 new files added, correct
>
> files.Insert(RDir(directory, "robots.txt", gb.file))
> print files.length
> ' prints 12256, one new file, correct
>
> files.Insert(RDir(directory, ".ht*", gb.file))
> print files.length
> ' prints 12256, but there were two files to add
>
> files.Insert(RDir(directory, ".htaccess", gb.file))
> print files.length
> ' prints 12256, but there was one file to add
>
I don't know... There is no reason why RDir() should not see a file.
Except maybe if you don't have the rights to read the .ht* files?
--
Benoît Minisini
More information about the User
mailing list