Add tokio version of std::fs::File::set_times
#6368
Labels
A-tokio
Area: The main tokio crate
C-feature-request
Category: A feature request.
M-fs
Module: tokio/fs
S-blocked-on-msrv
Status: need an MSRV bump to progress
Is your feature request related to a problem? Please describe.
Need async functions to set file times.
Describe the solution you'd like
Add tokio versions of
std::fs::File::set_times
andstd::fs::File::set_modified
.Describe alternatives you've considered
Either reopen the file using
std::fs::File
and useset_times
or use thefiletime
crate on the path.Additional context
The
std
versions were introduced in1.75
and I see that the currenttokio
MSRV is1.63
. I'm guessing using something likerustversion
for conditional compilation would be a no go? Is there any other way to add this besides waiting until the MSRV reaches1.75
?The text was updated successfully, but these errors were encountered: