Skip to main content

Module fs

Module fs 

Source
Expand description

Filesystem helpers for repository automation.

Functionsยง

copy_file
Copy a file, creating the destination parent directory when needed.
create_dir_all
Create path and any missing parent directories.
ensure_dir
Ensure that path exists and is a directory.
ensure_file
Ensure that path exists and is a regular file.
remove_path
Remove a file or directory tree if it exists.
write_string
Write UTF-8 text, creating the destination parent directory when needed.