Function try_create_file

Source
pub fn try_create_file(file: &Path) -> Result<()>
Expand description

try create file if does not exists
if file is dir, will be return Err
if y want to create or open file, see open_create_file