cap_primitives/fs/
set_times.rs1use crate::fs::{set_times_impl, set_times_nofollow_impl, SystemTimeSpec};
7use std::path::Path;
8use std::{fs, io};
9
10#[inline]
14pub fn set_times(
15 start: &fs::File,
16 path: &Path,
17 atime: Option<SystemTimeSpec>,
18 mtime: Option<SystemTimeSpec>,
19) -> io::Result<()> {
20 set_times_impl(start, path, atime, mtime)
21}
22
23#[inline]
25pub fn set_times_nofollow(
26 start: &fs::File,
27 path: &Path,
28 atime: Option<SystemTimeSpec>,
29 mtime: Option<SystemTimeSpec>,
30) -> io::Result<()> {
31 set_times_nofollow_impl(start, path, atime, mtime)
32}