[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 07f792148e
commit 57c6e23247
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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