Re: Get the newest file in a directory
- From: "Jasper St. Pierre" <jstpierre mecheye net>
- To: Stefano Ciancio <s ciancio gmail com>
- Cc: gnome-shell-list gnome org
- Subject: Re: Get the newest file in a directory
- Date: Thu, 2 Feb 2012 13:30:26 -0500
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 <s ciancio gmail com> 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<s ciancio gmail com>
>> 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
> gnome-shell-list gnome org
> http://mail.gnome.org/mailman/listinfo/gnome-shell-list
--
Jasper
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]