[Vala] Trouble using GLib.Stat
- From: Shawn Ferris <shawn ferris gmail com>
- To: ML - Vala <Vala-list gnome org>
- Subject: [Vala] Trouble using GLib.Stat
- Date: Sun, 28 Oct 2012 09:16:27 -0600
Hey Guys -- I can't figure out what I'm doing wrong.. All I want to do
is get stat information from a file. IE:
GLib.Stat sbuf = GLib.Stat ("a_file");
//Posix.stdout.printf("%d\n", sbuf.st_gid);
By looking at the c code generated, I think it's right, sbuf is a
struct stat, but I can't access the attributes:
src/x.vala:21.31-21.41: error: The name `st_gid' does not exist in the
context of `GLib.Stat'
This is a linux system and I checked the header files and st_glib is
valid. What am I doing wrong?
Appreciate any help!
Shawn
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]