[gvfs] archive: Set the is_hidden attribute when appropriate
- From: Ross Lagerwall <rossl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs] archive: Set the is_hidden attribute when appropriate
- Date: Thu, 7 Nov 2013 14:38:17 +0000 (UTC)
commit 33a9f21d96b8903188614509a405e62b858035a3
Author: Ross Lagerwall <rosslagerwall gmail com>
Date: Mon Nov 4 13:48:28 2013 +0200
archive: Set the is_hidden attribute when appropriate
https://bugzilla.gnome.org/show_bug.cgi?id=589157
daemon/gvfsbackendarchive.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/daemon/gvfsbackendarchive.c b/daemon/gvfsbackendarchive.c
index bccaa45..2461e53 100644
--- a/daemon/gvfsbackendarchive.c
+++ b/daemon/gvfsbackendarchive.c
@@ -459,6 +459,9 @@ archive_file_set_info_from_entry (GVfsArchive * archive,
}
g_file_info_set_size (info, size);
+ if (file->name[0] == '.')
+ g_file_info_set_is_hidden (info, TRUE);
+
mode = archive_entry_perm (entry);
g_file_info_set_attribute_boolean (info, G_FILE_ATTRIBUTE_ACCESS_CAN_READ, TRUE);
g_file_info_set_attribute_boolean (info, G_FILE_ATTRIBUTE_ACCESS_CAN_WRITE, FALSE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]