Module fsio::file

source · []
Expand description

file

File utility functions.

Functions

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.

Appends (or creates) and writes the text to the requested file path. If a file exists at that path, the content will be appended.

Deletes the requested file. If the file does not exist, this function will return valid response.

Deletes the requested file. If the file does not exist, this function will return true.

Ensures the provided path leads to an existing file. If the file does not exist, this function will create an emtpy file.

Overwrites or appends the requested file and triggers the provided write_content function to enable custom writing.

Reads the requested file and returns its content.

Reads the requested text file and returns its content.

Creates and writes the raw data to the requested file path. If a file exists at that path, it will be overwritten.

Creates and writes the text to the requested file path. If a file exists at that path, it will be overwritten.