changeset 328:dddea9684a8e

plugin file sharing: convert `dest_path` to string when sending to bridge: this is needed now that Path is used in files_utils.get_unique_name
author Goffi <goffi@goffi.org>
date Fri, 20 Dec 2019 12:29:37 +0100
parents b77792cc6d12
children 51520ce98154
files cagou/plugins/plugin_wid_file_sharing.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/cagou/plugins/plugin_wid_file_sharing.py	Wed Dec 11 18:26:42 2019 +0100
+++ b/cagou/plugins/plugin_wid_file_sharing.py	Fri Dec 20 12:29:37 2019 +0100
@@ -389,7 +389,7 @@
         extra = {'path': path}
         dest_path = files_utils.get_unique_name(os.path.join(G.host.downloads_dir, name))
         G.host.bridge.fileJingleRequest(str(self.remote_entity),
-                                        dest_path,
+                                        str(dest_path),
                                         name,
                                         '',
                                         '',