pub fn open_regular_for_create(path: &Path) -> Result<File, RestrictedOpenError>Expand description
Create or truncate a regular file, with the same restrictions as open_regular_for_append.
pub fn open_regular_for_create(path: &Path) -> Result<File, RestrictedOpenError>Create or truncate a regular file, with the same restrictions as open_regular_for_append.