glimr/filesystem/filesystem
Filesystem
This module contains helper functions to read and handle stub file data, create files from it, and also find and replace variable data within files.
Values
pub fn ensure_directory_exists(
file_path: String,
) -> Result(Nil, simplifile.FileError)
Helper function to Create all parent directories for a given file path if the directories provided do not already exist in the users application.
pub fn file_exists(
path: String,
) -> Result(Bool, simplifile.FileError)
Checks if a file exists at the given path. Returns Ok(True) if the file exists, Ok(False) if it doesn’t, or Error if there was an issue checking the filesystem.