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

------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to