Skip to main content

Module remove_dir_impl

Module remove_dir_impl 

Source
Available on neither miri nor ESP-IDF nor Horizon nor L4Re nor Play Station Vita nor QNX SDP 7.x nor QNX SDP 8.0+ nor Redox OS nor VxWorks.

Re-exportsยง

use libc::fdopendir; ๐Ÿ”’ GNU and Linux
use libc::openat64 as openat; ๐Ÿ”’ GNU and Linux
use libc::unlinkat; ๐Ÿ”’ GNU and Linux
use super::AsRawFd; ๐Ÿ”’
use super::DirEntry; ๐Ÿ”’
use super::DirStream; ๐Ÿ”’
use super::FromRawFd; ๐Ÿ”’
use super::InnerReadDir; ๐Ÿ”’
use super::IntoRawFd; ๐Ÿ”’
use super::OwnedFd; ๐Ÿ”’
use super::RawFd; ๐Ÿ”’
use super::ReadDir; ๐Ÿ”’
use super::lstat; ๐Ÿ”’
use crate::ffi::CStr; ๐Ÿ”’
use crate::io; ๐Ÿ”’
use crate::path::Path; ๐Ÿ”’
use crate::path::PathBuf; ๐Ÿ”’
use crate::sys::helpers::ignore_notfound; ๐Ÿ”’
use crate::sys::helpers::run_path_with_cstr; ๐Ÿ”’
use crate::sys::cvt; ๐Ÿ”’
use crate::sys::cvt_r; ๐Ÿ”’

Functionsยง

fdreaddir ๐Ÿ”’
is_dir ๐Ÿ”’ Neither AIX nor Haiku nor illumos nor Solaris nor VxWorks
is_enoent ๐Ÿ”’
openat_nofollow_dironly
remove_dir_all
remove_dir_all_modern ๐Ÿ”’
remove_dir_all_recursive ๐Ÿ”’
parent_fd being None indicates that this is the root where we start. In that case, path will only be deleted if it is a directory. When it is Some, this will delete anything.