Expand description
File operations: create, rename, copy, move, duplicate and trash.
Production uses FileOps over std::fs for everything except trashing,
which goes through the TrashService seam so tests can record calls
instead of putting real files in the user’s trash. The trash implementation
that ships (GioTrash) delegates to the platform’s trash via GIO, so the
behaviour matches what GNOME/Nautilus calls “move to trash”.
Structs§
- FileOps
- All file operations of the panel.
- GioTrash
- Moves paths to the system trash via GIO. This is a small, thin wrapper so tests can substitute a recording fake.
Enums§
- OpsError
- Error type for file operations. Wraps
io::Errorand adds a few higher-level outcomes produced here (name conflicts, cross-device moves).
Traits§
- Trash
Service - Where the destination of an operation lands in the trash.