Module mdbook::utils [] [src]

Functions

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.

create_path

This function checks for every component in a path if the directory exists, if it does not it is created.

path_to_root

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