Skip to main content

Module fs

Module fs 

Source
Expand description

Contains functions for working with the filesystem.

Functionsยง

ensure_dir_exists
Ensures that the directory at the given path exists, creating it if necessary.
ensure_parent_dir_exists
Ensures that the parent directory of the given path exists, creating it if necessary.
remove_dir_all_if_exists
Removes the directory and its contents at the given path if it exists.
remove_file_if_exists
Removes the file at the given path if it exists.