snowflake.ml.fileset.sfcfs.SFFileSystem¶
- class snowflake.ml.fileset.sfcfs.SFFileSystem(*args, **kwargs)¶
Bases:
AbstractFileSystemA filesystem that allows user to access Snowflake stages and stage files with valid Snowflake locations.
The file system is is based on fsspec (https://filesystem-spec.readthedocs.io/). It is a file system wrapper built on top of SFStageFileSystem. It takes Snowflake stage file path as the input and supports read operation. A valid Snowflake location will have the form “@{database_name}.{schema_name}.{stage_name}/{path_to_file}”.
‘
‘
‘
Methods
info(path, **kwargs)Override fsspec info method.
ls(path[, detail])Override fsspec ls method.
optimize_read([files])Prefetch and cache the presigned urls for all the given files to speed up the file opening.
Attributes