# HG changeset patch # User Goffi # Date 1600371734 -7200 # Node ID e3bdfecaf1b03f89fa30751e1df68b51d75cfeba # Parent 02583a401e514a73023ea3aa99a27f5f1c1fad51 component file sharing: fix used of `self.files_path` in `_retrieveFiles` diff -r 02583a401e51 -r e3bdfecaf1b0 sat/plugins/plugin_comp_file_sharing.py --- 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