[][src]Function cmps::compose

pub fn compose<P: AsRef<Path>>(path: P, extension: Option<&str>) -> Result<File>

The main function of this library. It takes a path to either a non-existing file, or an empty existing file. The extension should usually match the extension in the path, but can be overriden by providing a different extension. If extension is None, an empty file will be created.