Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Kamm <kamm@incasoftware.de>2015-02-26 11:40:54 +0300
committerChristian Kamm <kamm@incasoftware.de>2015-02-26 11:58:09 +0300
commit842e5ba5e009f3e722f2f1efaf1298cbe6d8930e (patch)
tree92b2f6fb38dc271b62c7e318f0bd1888ec32cfa7 /shell_integration
parent10d28292c6ef9bece3ee98208d6dac86c021d223 (diff)
Sharing: Fix for folders containing &. #2892
Diffstat (limited to 'shell_integration')
-rwxr-xr-xshell_integration/nautilus/syncstate.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/shell_integration/nautilus/syncstate.py b/shell_integration/nautilus/syncstate.py
index 6e1b8ae11..0b5e37dff 100755
--- a/shell_integration/nautilus/syncstate.py
+++ b/shell_integration/nautilus/syncstate.py
@@ -21,8 +21,10 @@ from gi.repository import GObject, Nautilus
# do not touch the following line.
appname = 'ownCloud'
-def get_local_path(path):
- return path.replace("file://", "")
+def get_local_path(url):
+ if url[0:7] == 'file://':
+ url = url[7:]
+ return urllib.unquote(url)
def get_runtime_dir():
"""Returns the value of $XDG_RUNTIME_DIR, a directory path.
@@ -254,7 +256,7 @@ class SyncStateExtension(GObject.GObject, Nautilus.ColumnProvider, Nautilus.Info
if item.get_uri_scheme() != 'file':
return
- filename = urllib.unquote(item.get_uri()[7:])
+ filename = get_local_path(item.get_uri())
if item.is_directory():
filename += '/'