From 094c4256d4e06418b6cb1828630dff9ab138fcd1 Mon Sep 17 00:00:00 2001 From: Hellow2 Date: Fri, 31 Mar 2023 09:54:31 +0200 Subject: [PATCH] fixed issue with copy to --- src/music_kraken/objects/target.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/music_kraken/objects/target.py b/src/music_kraken/objects/target.py index 76734ab..b83b577 100644 --- a/src/music_kraken/objects/target.py +++ b/src/music_kraken/objects/target.py @@ -60,7 +60,7 @@ class Target(DatabaseObject): with open(self.file_path, "rb") as read_from: copy_to.create_path() - with open(self.file_path, "wb") as write_to: + with open(copy_to.file_path, "wb") as write_to: write_to.write(read_from.read()) def stream_into(self, r: requests.Response):