Re: [Vala] [vala][newbie] file_info.get_file_type

2011-05-08 Thread Jens Georg
On Mo, 2011-04-11 at 22:53 -0700, Charles Hixson wrote: I can't figure out what I'm doing wrong, but file_info.get_file_type always returns a value of 0 (i.e., UNKNOWN): Yes, and it rightfully does. Because you don't query for it. You want to query for

[Vala] [vala][newbie] file_info.get_file_type

2011-05-07 Thread Charles Hixson
I can't figure out what I'm doing wrong, but file_info.get_file_type always returns a value of 0 (i.e., UNKNOWN): // valac --pkg gio-2.0 walker.vala // ./walker void walk (File directory) { try { var enumerator = directory.enumerate_children

Re: [Vala] [vala][newbie] file_info.get_file_type

2011-04-12 Thread Jens Georg
On Mon, 2011-04-11 at 22:49 -0700, Charles Hixson wrote: I can't figure out what I'm doing wrong, but file_info.get_file_type always returns a value of 0 (i.e., UNKNOWN): That's correct, becauseā€¦ // valac --pkg gio-2.0 walker.vala // ./walker