Add File::open_with() function to open files with options (e.g. read/write) #55762
Labels
C-feature-request
Category: A feature request, i.e: not implemented / a PR.
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
The current way to open a file is this:
But if you want to open a file in with any options you do this:
It's weird that the options object does the actual opening. I propose that we deprecate
OpenOptions::open()
and addFile::open_with(path: &str, options: &OpenOptions)
.The text was updated successfully, but these errors were encountered: