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.