[Pkg-owncloud-commits] [owncloud-client] 107/120: checking if file or folder is to be shared to fix issue #3556
Sandro Knauß
hefee-guest at moszumanska.debian.org
Mon Aug 24 00:02:53 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 9a0fba5f5eb8d3dcf7598fe82f11dbf7ca0875da
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