You could try both methods, and wrap the one that errors out into a try/catch.
On Thu, Feb 2, 2012 at 12:29 PM, Stefano Ciancio <[email protected]> wrote: > I have glib2-2.30.2-1.fc16.x86_64 :( > > Exists other methods to get file modification time? > > > > On 02/02/2012 06:01 PM, Jasper St. Pierre wrote: >> >> You need at least GLib 2.31.0 to have that. >> >> On Thu, Feb 2, 2012 at 11:55 AM, Stefano Ciancio<[email protected]> >> wrote: >>> >>> Sorry, I have responded in wrong thread. >>> >>> >>> It show the following error: >>> >>> Too few arguments to method Gio.get_modification_time expected 1 got 0 >>> >>> >>> >>> On 02/02/2012 05:43 PM, Jasper St. Pierre wrote: >>>> >>>> g_file_info_get_modification_time is marked as (out caller-allocates). >>>> So you would use: >>>> >>>> let infoTimeVal = info.get_modification_time(); >>>> >>>> >>>> >>>> > _______________________________________________ > gnome-shell-list mailing list > [email protected] > http://mail.gnome.org/mailman/listinfo/gnome-shell-list -- Jasper _______________________________________________ gnome-shell-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/gnome-shell-list
