changeset 3363:e3bdfecaf1b0

component file sharing: fix used of `self.files_path` in `_retrieveFiles`
author Goffi <goffi@goffi.org>
date Thu, 17 Sep 2020 21:42:14 +0200
parents 02583a401e51
children d24252df91ee
files sat/plugins/plugin_comp_file_sharing.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/sat/plugins/plugin_comp_file_sharing.py	Thu Sep 17 21:41:19 2020 +0200
+++ b/sat/plugins/plugin_comp_file_sharing.py	Thu Sep 17 21:42:14 2020 +0200
@@ -550,7 +550,7 @@
             raise TypeError("a file was expected, type is {type_}".format(
                 type_=found_file['type']))
         file_hash = found_file["file_hash"]
-        file_path = os.path.join(self.files_path, file_hash)
+        file_path = self.files_path / file_hash
         file_data["hash_hasher"] = hasher = self._h.getHasher(found_file["hash_algo"])
         size = file_data["size"] = found_file["size"]
         file_data["file_hash"] = file_hash