mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-06 23:09:55 +01:00
azure: transfer bigger chunks of data (#5504)
This commit is contained in:
+5
-1
@@ -177,8 +177,12 @@ class AzureFileSystem(BaseFileSystem):
|
||||
return info
|
||||
|
||||
def _upload_fobj(self, fobj, to_info):
|
||||
from adlfs import AzureBlobFile
|
||||
|
||||
with self.open(to_info, "wb") as fdest:
|
||||
shutil.copyfileobj(fobj, fdest)
|
||||
shutil.copyfileobj(
|
||||
fobj, fdest, length=AzureBlobFile.DEFAULT_BLOCK_SIZE
|
||||
)
|
||||
|
||||
def _upload(
|
||||
self, from_file, to_info, name=None, no_progress_bar=False, **kwargs
|
||||
|
||||
Reference in New Issue
Block a user