[gvfs] afc: Support st_birthtime
- From: Ross Lagerwall <rossl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs] afc: Support st_birthtime
- Date: Sat, 12 Jul 2014 09:24:55 +0000 (UTC)
commit 9b9e4aa95c9ea3aa414541d756b838e844ce7a1e
Author: Ross Lagerwall <rosslagerwall gmail com>
Date: Fri Jul 4 23:37:48 2014 +0100
afc: Support st_birthtime
Allow setting the created timestamp using st_birthtime, supported on
iOS 7+.
https://bugzilla.gnome.org/show_bug.cgi?id=732752
daemon/gvfsbackendafc.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/daemon/gvfsbackendafc.c b/daemon/gvfsbackendafc.c
index 91cc5c8..3c0b787 100644
--- a/daemon/gvfsbackendafc.c
+++ b/daemon/gvfsbackendafc.c
@@ -1515,6 +1515,10 @@ g_vfs_backend_afc_set_info_from_afcinfo (GVfsBackendAfc *self,
{
g_file_info_set_attribute_uint64 (info, G_FILE_ATTRIBUTE_TIME_MODIFIED, atoll(afcinfo[i+1]) /
1000000000);
}
+ else if (g_str_equal (afcinfo[i], "st_birthtime"))
+ {
+ g_file_info_set_attribute_uint64 (info, G_FILE_ATTRIBUTE_TIME_CREATED, atoll(afcinfo[i+1]) /
1000000000);
+ }
else if (g_str_equal (afcinfo[i], "LinkTarget"))
{
linktarget = g_strdup (afcinfo[i+1]);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]