We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
File::set_times
1 parent 1bb14a8 commit a99860bCopy full SHA for a99860b
library/std/src/fs.rs
@@ -1111,6 +1111,10 @@ impl File {
1111
/// `futimes` on macOS before 10.13) and the `SetFileTime` function on Windows. Note that this
1112
/// [may change in the future][changes].
1113
///
1114
+ /// On most platforms, including UNIX and Windows platforms, this function can also change the
1115
+ /// timestamps of a directory. To do so, open the directory with `File::open`, without
1116
+ /// attempting to obtain write permission.
1117
+ ///
1118
/// [changes]: io#platform-specific-behavior
1119
1120
/// # Errors
0 commit comments