Module touch::file [] [src]

This module contains basic methods to manipulate the contents of local files. All methods in this module represent cross-platform filesystem operations.

Functions

create

Creates the file indicated by the provided path. If truncate is true and the file already exists, this method will overwrite the file.

delete

Idempotently deletes the file indicated by the provided path.

read

Reads the contents of the file indicated by the provided path into a String.

write

Creates the file indicated by the provided path and writes the contents if the content string is not empty. If truncate is true and the file already exists, this method will overwrite the file.