Retrieving file access time via getter function as a GDateTime object

Hi,

I have noticed that there is no getter function for retrieving the access time of a file, although there is a function available for retrieving the modification time as a GDateTime object. Would it be possible to add such a method like the existing g_file_info_get_modification_date_time (link), but for access time?

Is there a known reason that this method does not exist jet? Should I create an issue on gitlab?

Best
Uwe

Yes, @sthursfield filed an issue about adding such a method recently. Help would be appreciated in adding it, and we’d be happy to mentor or review merge requests.

The API for GLib 2.68 is frozen now, but this could make it in for the 2.70 release (after GNOME 40) if someone worked on it.

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.