Sha256: af2373d14eaf10ae3662d52a4f245fdcf639964763ed9fddef3763ba337b14e1
Contents?: true
Size: 495 Bytes
Versions: 38
Compression:
Stored size: 495 Bytes
Contents
use super::open_parent; use crate::fs::{remove_dir_unchecked, MaybeOwnedFile}; use std::path::Path; use std::{fs, io}; /// Implement `remove_dir` by `open`ing up the parent component of the path and /// then calling `remove_dir_unchecked` on the last component. pub(crate) fn remove_dir(start: &fs::File, path: &Path) -> io::Result<()> { let start = MaybeOwnedFile::borrowed(start); let (dir, basename) = open_parent(start, path)?; remove_dir_unchecked(&dir, basename.as_ref()) }
Version data entries
38 entries across 38 versions & 1 rubygems