Module mdbook::utils::fs [] [src]

Functions

copy_files_except_ext

Copies all files of a directory to another one except the files with the extensions given in the ext_blacklist array

create_file

This function creates a file and returns it. But before creating the file it checks every directory in the path to see if it exists, and if it does not it will be created.

file_to_string

Takes a path to a file and try to read the file into a String

path_to_root

Takes a path and returns a path containing just enough ../ to point to the root of the given path.

remove_dir_content

Removes all the content of a directory but not the directory itself