diff --git a/smartfile/__init__.py b/smartfile/__init__.py index 958e9fa..d024848 100644 --- a/smartfile/__init__.py +++ b/smartfile/__init__.py @@ -160,7 +160,7 @@ def download(self, file_to_be_downloaded, perform_download=True): # download uses shutil.copyfileobj to download, which copies # the data in chunks o = open(file_to_be_downloaded, 'wb') - return shutil.copyfileobj(response.raw, o) + return shutil.copyfileobj(response.data, o) def move(self, src_path, dst_path): # check destination folder for / at end