Function bdrck::fs::create_file
source · pub fn create_file<P: AsRef<Path>>(path: P) -> Result<()>
Expand description
This is a simple utility to create a new empty file. If a file at the given path already exists, it will be truncated. It’s an error if the path already exists but is, for example, a directory.