#8487·tokio

add the set_times function to tokios File struct

Author: Cheese-SpaceCreated Sep 16, 2026Updated Sep 16, 2026
LabelsA-tokioC-feature-request

I currently have async code which needs to set file times, but before i do that, i have to convert it into a std_file and then preform the blocking set_times function. So i suggest this function to be added to tokio's file struct having the same signature as std

edit: this is the signature of File::set_times:

rust
pub fn set_times(&self, times: std::fs::FileTimes) -> io::Result<()>