file_exists#
- file_exists(uri: str, fs: rastervision.pipeline.file_system.file_system.FileSystem | None = None, include_dir: bool = True) bool [source]#
Check if file exists.
- Parameters:
uri (str) – URI of file
fs (rastervision.pipeline.file_system.file_system.FileSystem | None) – If supplied, use fs instead of automatically chosen
FileSystem
foruri
.include_dir (bool) – Include directories in check, if the file system supports directory reads. Otherwise only return true if a single file exists at the URI. Defaults to
True
.
- Return type: