From 039619b9bf5ae59d964a1179170461c9f3410326 Mon Sep 17 00:00:00 2001 From: AidanAbd Date: Mon, 10 Jul 2023 22:10:24 -0700 Subject: [PATCH] fix: allow node paths for remote paths --- latch/types/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/latch/types/utils.py b/latch/types/utils.py index e6c9fbdc..50490331 100644 --- a/latch/types/utils.py +++ b/latch/types/utils.py @@ -14,6 +14,6 @@ def _is_valid_url(raw_url: Union[str, Path]) -> bool: return False if parsed.scheme not in ("latch", "s3"): return False - if not parsed.path.startswith("/"): + if parsed.path != "" and not parsed.path.startswith("/"): return False return True