[data] Reading files from cloud is broken (#8182) (#8183)

This commit is contained in:
Youngwoo Kim 2025-05-28 16:50:44 +09:00 committed by GitHub
parent 4d3ffa2ec4
commit 6c3cd400b5

View File

@ -152,6 +152,8 @@ def setup_fs(path, anon=False):
fs = fsspec.filesystem("gcs", **storage_options)
else:
raise ValueError(f"Unsupported protocol in path: {path}. Use 's3://' or 'gs://'")
if not fs.exists(path):
raise ValueError(f"Path does not exist: {path}")
return fs