Skip to content

Commit 69d6e7d

Browse files
committed
Fixes #4 TAPIS file path with spaces
1 parent bd54ff0 commit 69d6e7d

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

dapi/jobs.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1007,9 +1007,7 @@ def archive_uri(self) -> Optional[str]:
10071007
details = self._get_details()
10081008
if details.archiveSystemId and details.archiveSystemDir:
10091009
archive_path = details.archiveSystemDir.lstrip("/")
1010-
return (
1011-
f"tapis://{details.archiveSystemId}/{archive_path}"
1012-
)
1010+
return f"tapis://{details.archiveSystemId}/{archive_path}"
10131011
return None
10141012

10151013
def list_outputs(
@@ -1084,9 +1082,7 @@ def download_output(self, remote_path: str, local_target: str):
10841082
details.archiveSystemDir, remote_path.lstrip("/")
10851083
)
10861084
full_archive_path = os.path.normpath(full_archive_path).lstrip("/")
1087-
remote_uri = (
1088-
f"tapis://{details.archiveSystemId}/{full_archive_path}"
1089-
)
1085+
remote_uri = f"tapis://{details.archiveSystemId}/{full_archive_path}"
10901086
try:
10911087
from .files import download_file
10921088

0 commit comments

Comments
 (0)