Re: [Vala] Gdir - newbie problem
- From: Levi Bard <taktaktaktaktaktaktaktaktaktak gmail com>
- To: Leonti Bielski <prishelec gmail com>
- Cc: Vala-list gnome org
- Subject: Re: [Vala] Gdir - newbie problem
- Date: Wed, 8 Apr 2009 16:55:26 -0400
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]