Sha256: 604a26aef933cf64c649a23dab70c48eb44b85fcce930d5eec938770951612ad
Contents?: true
Size: 393 Bytes
Versions: 20
Compression:
Stored size: 393 Bytes
Contents
use crate::fs::via_parent; use rustix::fs::{unlinkat, AtFlags}; use std::path::Path; use std::{fs, io}; pub(crate) fn remove_dir_impl(start: &fs::File, path: &Path) -> io::Result<()> { if !super::beneath_supported() { return via_parent::remove_dir(start, path); } Ok(unlinkat( start, path, AtFlags::RESOLVE_BENEATH | AtFlags::REMOVEDIR, )?) }
Version data entries
20 entries across 20 versions & 1 rubygems