Skip to content

Commit

Permalink
Keeping source_path: str and dest_path:str, but only coercing str(sou…
Browse files Browse the repository at this point in the history
…rce_path) since it is reinitialized into a Path object
  • Loading branch information
davramov committed Sep 20, 2024
1 parent 76e6c4f commit 3f44d75
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions orchestration/globus/transfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ def init_transfer_client(app: GlobusApp) -> TransferClient:
def start_transfer(
transfer_client: TransferClient,
source_endpoint: GlobusEndpoint,
source_path: Path,
source_path: str,
dest_endpoint: GlobusEndpoint,
dest_path: Path,
dest_path: str,
max_wait_seconds=600,
logger=logger,
):
Expand All @@ -115,7 +115,7 @@ def start_transfer(
relative_path = item.relative_to(source_path.parent)
tdata.add_item(str(item), os.path.join(dest_path, str(relative_path)))
else:
tdata.add_item(str(source_path), str(dest_path))
tdata.add_item(str(source_path), dest_path)
logger.info(
f"starting transfer {source_endpoint.uri}:{source_path} to {dest_endpoint.uri}:{dest_path}"
)
Expand Down

0 comments on commit 3f44d75

Please sign in to comment.