[gvfs/wip/oholy/google-native-html: 3/4] google: Set size for native files to fix access over fuse
- From: Ondrej Holy <oholy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs/wip/oholy/google-native-html: 3/4] google: Set size for native files to fix access over fuse
- Date: Thu, 1 Nov 2018 14:50:26 +0000 (UTC)
commit cdd89d89c30be0d6823c8c29951b0f7af4b2b48a
Author: Ondrej Holy <oholy redhat com>
Date: Thu Nov 1 09:10:16 2018 +0100
google: Set size for native files to fix access over fuse
daemon/gvfsbackendgoogle.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/daemon/gvfsbackendgoogle.c b/daemon/gvfsbackendgoogle.c
index 0fdd2c4e..477a4237 100644
--- a/daemon/gvfsbackendgoogle.c
+++ b/daemon/gvfsbackendgoogle.c
@@ -969,12 +969,15 @@ build_file_info (GVfsBackendGoogle *self,
}
else
{
+ goffset size;
+
file_type = G_FILE_TYPE_REGULAR;
/* We want native Drive content to open in the browser. */
if (is_native_file (entry))
{
content_type = g_strdup ("text/html");
+ g_free (generate_helper_data (entry, &size));
}
else
{
@@ -985,8 +988,9 @@ build_file_info (GVfsBackendGoogle *self,
#else
size = gdata_documents_entry_get_quota_used (GDATA_DOCUMENTS_ENTRY (entry));
#endif
- g_file_info_set_attribute_uint64 (info, G_FILE_ATTRIBUTE_STANDARD_SIZE, (guint64) size);
}
+
+ g_file_info_set_attribute_uint64 (info, G_FILE_ATTRIBUTE_STANDARD_SIZE, (guint64) size);
}
if (is_symlink)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]