[gvfs] dav: Set the is_hidden property for files starting with a '.'
- From: Ross Lagerwall <rossl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs] dav: Set the is_hidden property for files starting with a '.'
- Date: Thu, 12 Dec 2013 16:38:14 +0000 (UTC)
commit 20f1c7197173816490a6196c776793d77791e1f1
Author: Ross Lagerwall <rosslagerwall gmail com>
Date: Wed Dec 11 18:55:57 2013 +0200
dav: Set the is_hidden property for files starting with a '.'
https://bugzilla.gnome.org/show_bug.cgi?id=720275
daemon/gvfsbackenddav.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/daemon/gvfsbackenddav.c b/daemon/gvfsbackenddav.c
index a661230..cd92625 100644
--- a/daemon/gvfsbackenddav.c
+++ b/daemon/gvfsbackenddav.c
@@ -991,6 +991,9 @@ ms_response_to_file_info (MsResponse *response,
g_file_info_set_name (info, basename);
g_file_info_set_edit_name (info, basename);
+ if (basename && basename[0] == '.')
+ g_file_info_set_is_hidden (info, TRUE);
+
file_type = G_FILE_TYPE_REGULAR;
mime_type = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]