Skip to main content
Version: 8 - Apfelstrudel

File

class flow_api.file.File(select=None, init=None, by=name, **kwargs)

Base class: Resource

The File class represents a file. Functions from the file class allow interaction with file objects.

A file can be created with system.file('filename').save() inside the handler function of a flow script using the system reference.

Please see https://docs.python.org/3/library/codecs.html#standard-encodings for a list of supported character encodings to specify for the encoding parameter.

See the corresponding Resources class at File

Parameters

NameTypeDescription
**kwargs
by
init
select

Constants

RESOURCE = file

Methods

add_tag

archive

clone

delete

exists

export

get

get_base64_content

get_bytes_content

get_dict

get_identity_created_by

get_identity_deleted_by

get_identity_modified_by

get_json_content

get_logs

get_tags

get_text_content

get_yaml_content

remove_tag

restore

save

save_base64_content

save_bytes_content

save_json_content

save_text_content

save_yaml_content