pub fn create_file(directory: &str, file_name: &str) -> Result<()>Expand description
Creates a file with a specific name in a specific directory. If the directory does not exist, it will be created.
§Arguments
directory- The path to the directory where the file should be created.file_name- The name of the file to create.
§Returns
Ok(())if the file is created successfully.Err(io::Error)if an error occurs.