From c9b2c1d27d56d0756d34d39f2655adf3191edafc Mon Sep 17 00:00:00 2001 From: Goffi Date: Thu, 17 Sep 2020 21:42:14 +0200 Subject: [PATCH] component file sharing: fix used of `self.files_path` in `_retrieveFiles` --- sat/plugins/plugin_comp_file_sharing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sat/plugins/plugin_comp_file_sharing.py b/sat/plugins/plugin_comp_file_sharing.py index 96a338c7..5e07cd3d 100644 --- a/sat/plugins/plugin_comp_file_sharing.py +++ b/sat/plugins/plugin_comp_file_sharing.py @@ -550,7 +550,7 @@ class FileSharing: 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