mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-01 23:08:43 +01:00
ui: fix missing progress & tidy (#3335)
* ui: show missing progress Fixes #3332 * ui: more verbose progress * remote: base: back to no_progres_bar=True
This commit is contained in:
@@ -246,7 +246,7 @@ class RemoteGDrive(RemoteBASE):
|
||||
self,
|
||||
parent_id,
|
||||
title,
|
||||
no_progress_bar=True,
|
||||
no_progress_bar=False,
|
||||
from_file="",
|
||||
progress_name="",
|
||||
):
|
||||
|
||||
+3
-3
@@ -51,7 +51,7 @@ def _upload_to_bucket(
|
||||
to_info,
|
||||
chunk_size=None,
|
||||
name=None,
|
||||
no_progress_bar=True,
|
||||
no_progress_bar=False,
|
||||
):
|
||||
blob = bucket.blob(to_info.path, chunk_size=chunk_size)
|
||||
with io.open(from_file, mode="rb") as fobj:
|
||||
@@ -166,7 +166,7 @@ class RemoteGS(RemoteBASE):
|
||||
"""
|
||||
return self.isfile(path_info) or self.isdir(path_info)
|
||||
|
||||
def _upload(self, from_file, to_info, name=None, no_progress_bar=True):
|
||||
def _upload(self, from_file, to_info, name=None, no_progress_bar=False):
|
||||
bucket = self.gs.bucket(to_info.bucket)
|
||||
_upload_to_bucket(
|
||||
bucket,
|
||||
@@ -176,7 +176,7 @@ class RemoteGS(RemoteBASE):
|
||||
no_progress_bar=no_progress_bar,
|
||||
)
|
||||
|
||||
def _download(self, from_info, to_file, name=None, no_progress_bar=True):
|
||||
def _download(self, from_info, to_file, name=None, no_progress_bar=False):
|
||||
bucket = self.gs.bucket(from_info.bucket)
|
||||
blob = bucket.get_blob(from_info.path)
|
||||
with io.open(to_file, mode="wb") as fobj:
|
||||
|
||||
Reference in New Issue
Block a user