snowflake.snowpark.FileOperation

class snowflake.snowpark.FileOperation(session: Session)[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.26.0/snowpark-python/src/snowflake/snowpark/file_operation.py#L60-L365)

Bases: object

Provides methods for working on files in a stage. To access an object of this class, use Session.file.

Methods

get(stage_location, target_directory, *[, ...])

Downloads the specified files from a path in a stage to a local directory.

get_stream(stage_location, *[, parallel, ...])

Downloads the specified files from a path in a stage and expose it through a stream.

put(local_file_name, stage_location, *[, ...])

Uploads local files to the stage.

put_stream(input_stream, stage_location, *)

Uploads local files to the stage via a file stream.

Language: English