Skip to content

Commit

Permalink
make rclone calls always verbose, so that we have an idea of what it …
Browse files Browse the repository at this point in the history
…is doing for big datasets
  • Loading branch information
Jeff Fischer committed May 15, 2020
1 parent f84f627 commit 51b6953
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions dataworkspaces/resources/rclone_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,7 @@ def pull(self) -> None:
flags = ["--size-only"]
else:
flags = []
if self.workspace.verbose:
flags.append("--verbose")
flags.append("--verbose")
if self.master == "remote":
if self.sync_mode == "sync":
ret = self.rclone.sync(self.remote_origin, self.local_path, flags=flags)
Expand All @@ -184,8 +183,7 @@ def push(self) -> None:
flags = ["--size-only"]
else:
flags = []
if self.workspace.verbose:
flags.append("--verbose")
flags.append("--verbose")
if self.master == "local":
if self.sync_mode == "copy":
ret = self.rclone.copy(self.local_path, self.remote_origin, flags=flags)
Expand Down Expand Up @@ -258,8 +256,7 @@ def _copy_from_remote(
flags = ["--size-only"]
else:
flags = []
if verbose:
flags.append("--verbose")
flags.append("--verbose")

if sync_mode == "copy":
ret = rclone.copy(remote_origin, local_path, flags=flags)
Expand Down

0 comments on commit 51b6953

Please sign in to comment.