Skip to content

Commit

Permalink
fix: latch:///
Browse files Browse the repository at this point in the history
  • Loading branch information
kennyworkman committed Feb 22, 2022
1 parent 700776f commit 2bb6c17
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions latch/services/cp.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ def cp(local_file: str, remote_dest: str):
if local_file.exists() is not True:
raise ValueError(f"{local_file} must exist.")

if remote_dest[:8] != "latch://":
if remote_dest[:9] != "latch:///":
if remote_dest[0] == "/":
remote_dest = f"latch:/{remote_dest}"
remote_dest = f"latch://{remote_dest}"
else:
raise ValueError(f"{remote_dest} must be prefixed with 'latch://' or '/'")
raise ValueError(f"{remote_dest} must be prefixed with 'latch:///' or '/'")

token = retrieve_or_login()

Expand Down

0 comments on commit 2bb6c17

Please sign in to comment.