[Pkg-owncloud-commits] [owncloud-client] 02/484: checking if file or folder is to be shared to fix issue #3556

Sandro Knauß hefee-guest at moszumanska.debian.org
Wed Dec 16 00:36:59 UTC 2015


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit c6ff73f3e5035d2d4b4360819afc07fd5691eb6a
Author: Individual IT Services <info at individual-it.net>
Date:   Wed Aug 12 21:48:04 2015 +0545

    checking if file or folder is to be shared to fix issue #3556
---
 shell_integration/nautilus/syncstate.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/shell_integration/nautilus/syncstate.py b/shell_integration/nautilus/syncstate.py
index 4203ae3..b44e4c4 100755
--- a/shell_integration/nautilus/syncstate.py
+++ b/shell_integration/nautilus/syncstate.py
@@ -158,6 +158,9 @@ class MenuExtension(GObject.GObject, Nautilus.MenuProvider):
         syncedFile = False
         for reg_path in socketConnect.registered_paths:
             filename = get_local_path(file.get_uri())
+            #check if its a folder (ends with an /), if yes add a "/" otherwise it will not find the entry in the table
+            if os.path.isdir(filename+"/"):
+                filename=filename+"/"
             # only show the menu extension if the file is synced and the sync
             # status is ok. Not for ignored files etc.
             if filename.startswith(reg_path) and socketConnect.nautilusVFSFile_table[filename]['state'] == 'OK':

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list