fixed issue with copy to

This commit is contained in:
Hellow2 2023-03-31 09:54:31 +02:00
parent c93c469576
commit 094c4256d4

View File

@ -60,7 +60,7 @@ class Target(DatabaseObject):
with open(self.file_path, "rb") as read_from: with open(self.file_path, "rb") as read_from:
copy_to.create_path() 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()) write_to.write(read_from.read())
def stream_into(self, r: requests.Response): def stream_into(self, r: requests.Response):