Thanks! This is exactly what I was looking for! Leonti
On Wed, Apr 8, 2009 at 10:55 PM, Levi Bard <[email protected]> wrote: >> Can someone give me an example how to get a list of files in a directory? > > I'm doing something like: > Gee.ArrayList files = new > Gee.ArrayList<string>(); > > Dir? d = Dir.open(directory); > if(null != d) { > for(string? file = > d.read_name(); null != file; file = d.read_name()) { > files.insert(0,file); > } > } > > > > -- > http://homes.eff.org/~barlow/EconomyOfIdeas.html > http://www.dreamsongs.com/MobSoftware.html > http://www.gnu.org/philosophy/shouldbefree.html > _______________________________________________ Vala-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/vala-list
