[go: up one dir, main page]

Module file

Module file 

Source
Expand description

§file

File utility functions.

Functions§

append_file
Appends (or creates) and writes the raw data to the requested file path. If a file exists at that path, the content will be appended.
append_text_file
Appends (or creates) and writes the text to the requested file path. If a file exists at that path, the content will be appended.
delete
Deletes the requested file. If the file does not exist, this function will return valid response.
delete_ignore_error
Deletes the requested file. If the file does not exist, this function will return true.
ensure_exists
Ensures the provided path leads to an existing file. If the file does not exist, this function will create an emtpy file.
modify_file
Overwrites or appends the requested file and triggers the provided write_content function to enable custom writing.
read_file
Reads the requested file and returns its content.
read_text_file
Reads the requested text file and returns its content.
write_file
Creates and writes the raw data to the requested file path. If a file exists at that path, it will be overwritten.
write_text_file
Creates and writes the text to the requested file path. If a file exists at that path, it will be overwritten.