Skip to content

Commit

Permalink
Issue #74: Testing test_datasets.py, add logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
bongjinkoo committed May 16, 2022
1 parent 3cd92d2 commit 9583821
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ioSPI/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 9583821

Please sign in to comment.