comparison cagou/plugins/plugin_wid_file_sharing.py @ 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 772c170b47a9
children 4d660b252487
comparison
equal deleted inserted replaced
327:b77792cc6d12 328:dddea9684a8e
387 assert name 387 assert name
388 assert self.remote_entity 388 assert self.remote_entity
389 extra = {'path': path} 389 extra = {'path': path}
390 dest_path = files_utils.get_unique_name(os.path.join(G.host.downloads_dir, name)) 390 dest_path = files_utils.get_unique_name(os.path.join(G.host.downloads_dir, name))
391 G.host.bridge.fileJingleRequest(str(self.remote_entity), 391 G.host.bridge.fileJingleRequest(str(self.remote_entity),
392 dest_path, 392 str(dest_path),
393 name, 393 name,
394 '', 394 '',
395 '', 395 '',
396 extra, 396 extra,
397 self.profile, 397 self.profile,