cap_primitives/fs/via_parent/
mod.rs

1//! In many operations, the last component of a path is special. For example,
2//! in `create_dir`, the last component names the path to be created, while the
3//! rest of the components just name the place to create it in.
4
5mod access;
6mod create_dir;
7mod hard_link;
8mod open_parent;
9#[cfg(not(windows))] // doesn't work on windows; use a windows-specific impl
10mod read_link;
11mod remove_dir;
12mod remove_file;
13mod rename;
14#[cfg(windows)]
15mod set_permissions;
16#[cfg(not(target_os = "wasi"))]
17mod set_symlink_permissions;
18#[cfg(not(windows))]
19mod set_times_nofollow;
20mod symlink;
21
22use open_parent::open_parent;
23
24pub(crate) use access::access;
25pub(crate) use create_dir::create_dir;
26pub(crate) use hard_link::hard_link;
27#[cfg(not(windows))] // doesn't work on windows; use a windows-specific impl
28pub(crate) use read_link::read_link;
29pub(crate) use remove_dir::remove_dir;
30pub(crate) use remove_file::remove_file;
31pub(crate) use rename::rename;
32#[cfg(windows)]
33pub(crate) use set_permissions::set_permissions;
34#[cfg(not(target_os = "wasi"))]
35pub(crate) use set_symlink_permissions::set_symlink_permissions;
36#[cfg(not(windows))]
37pub(crate) use set_times_nofollow::set_times_nofollow;
38#[cfg(not(windows))]
39pub(crate) use symlink::symlink;
40#[cfg(windows)]
41pub(crate) use symlink::{symlink_dir, symlink_file};