[gvfs] afp: set file as hidden if it begins with a dot
- From: Christian Kellner <gicmo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs] afp: set file as hidden if it begins with a dot
- Date: Thu, 25 Aug 2011 19:23:18 +0000 (UTC)
commit 503c32d49552b89e5a2d2364aa9fb02897c1f9a6
Author: Carl-Anton Ingmarsson <ca ingmarsson gmail com>
Date: Wed Jun 22 18:54:57 2011 +0200
afp: set file as hidden if it begins with a dot
daemon/gvfsbackendafp.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/daemon/gvfsbackendafp.c b/daemon/gvfsbackendafp.c
index 4369b22..ecf9697 100644
--- a/daemon/gvfsbackendafp.c
+++ b/daemon/gvfsbackendafp.c
@@ -170,8 +170,6 @@ static void fill_info (GVfsBackendAfp *afp_backend,
if (attributes & AFP_FILEDIR_ATTRIBUTES_BITMAP_INVISIBLE_BIT)
g_file_info_set_is_hidden (info, TRUE);
- else
- g_file_info_set_is_hidden (info, FALSE);
}
if (bitmap & AFP_FILEDIR_BITMAP_CREATE_DATE_BIT)
@@ -211,6 +209,11 @@ static void fill_info (GVfsBackendAfp *afp_backend,
g_file_info_set_name (info, utf8_name);
g_file_info_set_attribute_string (info, G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME,
utf8_name);
+
+ /* Set file as hidden if it begins with a dot */
+ if (utf8_name[0] == '.')
+ g_file_info_set_is_hidden (info, TRUE);
+
g_free (utf8_name);
g_vfs_afp_reply_seek (reply, old_pos, G_SEEK_SET);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]