Add File::create_new convenience c'tor #6557
Labels
A-tokio
Area: The main tokio crate
C-feature-accepted
Category: A feature request that has been accepted pending implementation.
C-feature-request
Category: A feature request.
M-fs
Module: tokio/fs
A little while ago, std introduced
File::create_new
as a shortcut forFile::options().write(true).create_new(true).open(path)
.Describe the solution you'd like
Tokio should follow suit and add the same c'tor for its
File
type.Describe alternatives you've considered
Additional context
Happy to provide a PR if there are no concerns about this feature request.
The text was updated successfully, but these errors were encountered: