Expand description
The file picker’s model: one folder at a time, what is in it, and what the app can open there.
No window: crate::picker_view::FilePickerView draws it, and the tests drive it directly.
File → Open… (and only that item) brings the picker up. The app says what it opens
(FileKind: a name and the extensions; some “files” are folders, a Zarr store or an image
sequence, and open as one). In a folder the picker lists the subfolders first, then what the app
opens, and hides the rest unless “Show all files” is on (shown greyed, not openable). Hidden
entries (a leading dot) are left out.
Structs§
- Entry
- One entry of the folder shown.
- File
Kind - What an app opens: a name for people and the extensions that are one.
- Picker
- The picker’s state: the folder shown, its entries, the selection.
- Place
- A place in the picker’s left column: home, the desktop, downloads, a recent file’s folder.
Enums§
- Entry
Kind - What an entry of the folder is.
Functions§
- home_
dir - The user’s home folder, if the environment names one.
- human_
size 1.2 MB,340 kB,12 B(powers of 1000, as file managers show them).- places
- The places on this computer that exist: home, Desktop, Documents, Downloads, then the file system’s root.