snowflake.snowpark_checkpoints.io_utils.IOFileManager

class snowflake.snowpark_checkpoints.io_utils.IOFileManager(*args, **kwargs)

Bases: object

Methods

file_exists(path: str) bool
folder_exists(path: str) bool
getcwd() str
ls(path: str, recursive: bool = False) list[str]
mkdir(path: str, exist_ok: bool = False) None
read(file_path: str, mode: str = 'r', encoding: str | None = None) str
read_bytes(file_path: str) bytes
set_strategy(strategy: EnvStrategy)

Set the strategy for file and directory operations.

Parameters:

strategy (EnvStrategy) – The strategy to use for file and directory operations.

telemetry_path_files(path: str) Path
write(file_path: str, file_content: str, overwrite: bool = True) None