[Vala] Trouble using GLib.Stat



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]