From 3a004a4ccc9ffdb3d6dbc899eb5187754dfe9cb9 Mon Sep 17 00:00:00 2001 From: lud-ds <122787783+lud-ds@users.noreply.github.com> Date: Wed, 17 Jul 2024 16:28:47 +0200 Subject: [PATCH] Fix typo in resolver.py Error message refers to output_dir.path instead of output_dir.url --- src/litdata/streaming/resolver.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/litdata/streaming/resolver.py b/src/litdata/streaming/resolver.py index a10ff52a..02052484 100644 --- a/src/litdata/streaming/resolver.py +++ b/src/litdata/streaming/resolver.py @@ -218,7 +218,7 @@ def _assert_dir_is_empty(output_dir: Dir, append: bool = False, overwrite: bool obj = parse.urlparse(output_dir.url) if obj.scheme != "s3": - raise ValueError(f"The provided folder should start with s3://. Found {output_dir.path}.") + raise ValueError(f"The provided folder should start with s3://. Found {output_dir.url}.") s3 = boto3.client("s3") @@ -283,7 +283,7 @@ def _assert_dir_has_index_file( obj = parse.urlparse(output_dir.url) if obj.scheme != "s3": - raise ValueError(f"The provided folder should start with s3://. Found {output_dir.path}.") + raise ValueError(f"The provided folder should start with s3://. Found {output_dir.url}.") s3 = boto3.client("s3")