Sha256: 295e0914e0cfcf025634c1def683b8fae9a11703b15a93f5ee2bfa1f190e6a03
Contents?: true
Size: 514 Bytes
Versions: 13
Compression:
Stored size: 514 Bytes
Contents
use crate::fs::{Permissions, PermissionsExt}; use rustix::fs::{chmodat, AtFlags, Mode}; use std::path::Path; use std::{fs, io}; pub(crate) fn set_permissions_impl( start: &fs::File, path: &Path, perm: Permissions, ) -> io::Result<()> { if !super::beneath_supported() { return super::super::super::fs::set_permissions_manually(start, path, perm); } Ok(chmodat( start, path, Mode::from_raw_mode(perm.mode() as _), AtFlags::RESOLVE_BENEATH, )?) }
Version data entries
13 entries across 13 versions & 1 rubygems