mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-08-01 11:12:50 +08:00
parent
07f792148e
commit
57c6e23247
@ -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
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user