Skip to main content

tree_space/fs/
mod.rs

1//! Non-visual filesystem primitives.
2//!
3//! * [`model`] — a lazy tree model that never touches GTK and accepts directory
4//!   listings through the [`model::DirSource`] seam so it can be tested against
5//!   an in-memory filesystem.
6//! * [`ops`] — file operations (create/rename/copy/move/duplicate/trash)
7//!   behind a small abstraction so trashing can be faked in tests.
8//! * [`meta`] — metadata for the Properties dialog: a `stat(2)` snapshot,
9//!   permission math, owner/group resolution and image dimensions.
10//! * [`watcher`] — a `notify` (inotify) wrapper that translates raw
11//!   filesystem events into the model's [`Change`] vocabulary.
12//!
13//! Nothing in this module requires a graphical environment; it is exercised by
14//! `cargo test` on CI and developer machines alike.
15
16pub mod meta;
17pub mod model;
18pub mod ops;
19pub mod watcher;
20
21pub use model::{
22    Change, DirNode, DirSource, EntryInfo, SortKey, SortOptions, TreeModel, VisibleRow,
23};