1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#[cfg(not(windows))]
use crate::fs::set_times_nofollow_impl;
use crate::fs::{set_times_impl, FollowSymlinks, SystemTimeSpec};
use std::{fs, io, path::Path};
#[inline]
pub fn set_times(
start: &fs::File,
path: &Path,
atime: Option<SystemTimeSpec>,
mtime: Option<SystemTimeSpec>,
follow: FollowSymlinks,
) -> io::Result<()> {
set_times_impl(start, path, atime, mtime, follow)
}
#[inline]
#[cfg(not(windows))]
pub(crate) fn set_times_nofollow(
start: &fs::File,
path: &Path,
atime: Option<SystemTimeSpec>,
mtime: Option<SystemTimeSpec>,
) -> io::Result<()> {
set_times_nofollow_impl(start, path, atime, mtime)
}