Sha256: 185274ab023366733f50c79890210cd08c852fc86af9d23eccf7d713c0269443
Contents?: true
Size: 497 Bytes
Versions: 38
Compression:
Stored size: 497 Bytes
Contents
use super::open_parent; use crate::fs::{set_times_nofollow_unchecked, MaybeOwnedFile, SystemTimeSpec}; use std::path::Path; use std::{fs, io}; #[inline] pub(crate) fn set_times_nofollow( start: &fs::File, path: &Path, atime: Option<SystemTimeSpec>, mtime: Option<SystemTimeSpec>, ) -> io::Result<()> { let start = MaybeOwnedFile::borrowed(start); let (dir, basename) = open_parent(start, path)?; set_times_nofollow_unchecked(&dir, basename.as_ref(), atime, mtime) }
Version data entries
38 entries across 38 versions & 1 rubygems