From 9583821a03bfc3cfdde7f9cf3ce51847bc21151d Mon Sep 17 00:00:00 2001 From: Bongjin Koo Date: Mon, 16 May 2022 16:59:00 -0700 Subject: [PATCH] Issue #74: Testing test_datasets.py, add logging. --- ioSPI/datasets.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ioSPI/datasets.py b/ioSPI/datasets.py index e7d022c..c8e1729 100644 --- a/ioSPI/datasets.py +++ b/ioSPI/datasets.py @@ -117,12 +117,13 @@ def upload(self, local_path: str, remote_path: str): full_remote_path = self.storage + "/" + remote_path print(f"Uploading {local_path} to {full_remote_path}...") # os.system(f"osf upload {local_path} {full_remote_path}") - subprocess.run( + f = subprocess.run( f"osf upload {local_path} {full_remote_path}", shell=True, text=True, capture_output=True, - ) + ).stdout + print(f) print("Done!") def remove(self, remote_path: str):