Expand description
Filesystem access, confined to a configured root.
Placed at the crate root rather than under security/ because the jail is
not a check that sits beside file access — it is the only way file access
happens. Filing it with the other validators would invite the reading that
it can be bypassed.
Re-exports§
pub use root::FsError;pub use root::FsRoot;pub use transfer::sweep_orphan_parts;pub use transfer::sweep_orphan_parts_in;pub use transfer::FinishedUpload;pub use transfer::UploadError;pub use transfer::UploadStore;pub use transfer::DEFAULT_CHUNK_SIZE;pub use transfer::MAX_CHUNK_SIZE;pub use transfer::SESSION_TTL;pub use tree::remove_tree;pub use tree::TreeOutcome;
Modules§
- platform
- Cross-platform filesystem differences, absorbed in one place.
- root
- The jail boundary: the only way a path reaches the filesystem.
- sha256
- SHA-256 over files and over streams.
- transfer
- In-flight upload sessions.
- tree
- 디렉터리 트리를 세거나 제거한다.
Constants§
- UPLOAD_
DIR - Directory under the root where in-flight uploads are staged.