1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//! Local filesystem primitives for paths, files, directories, links, permissions,
//! temporary files, and file trees.
//!
//! This crate intentionally stays below storage abstractions. Higher-level
//! crates such as `rskit-storage`, `rskit-cache`, and `rskit-httpclient` use
//! these primitives instead of each reimplementing path safety, temp files, and
//! atomic file replacement.
//!
//! Security defaults:
//! - use [`path::safe_join`] for user-provided relative paths before touching disk;
//! - sync tree copy/list operations do not follow symlinks unless explicitly requested;
//! - use `async_io::file::write_atomic` or `sync_io::file::write_atomic` for same-filesystem writes
//! without exposing partial files, and `write_atomic_replace` when existing files should be
//! replaced (existing-file replacement is atomic on Unix-like platforms; Windows replacement
//! removes the destination before renaming because the platform rename operation cannot replace
//! an existing file);
//! - use [`permissions`] capability checks before performing optional user-facing operations when
//! the `async` feature is enabled.
/// Platform application directory helpers.
/// Async filesystem operations.
pub
/// Async hard-link and symbolic-link helpers.
/// Safe path helpers.
/// Permission and capability helpers.
/// Synchronous filesystem operations.
/// Temporary file and path helpers.
pub use app_cache_dir;
pub use ;
pub use ;
pub use ;