Module files

Source
Expand description

File-oriented widgets built from VFS snapshots. File-oriented widgets built on top of ailloli_ui_fs models.

The base FileExplorer remains UI-only: callers provide snapshots of file entries and receive callbacks. The optional files_local feature adds a convenience wrapper that builds that snapshot from the local provider.

Structs§

FileBreadcrumb
Horizontal cumulative-path breadcrumb for a file URI.
FileBreadcrumbSegment
One cumulative location displayed by FileBreadcrumb.
FileBreadcrumbStyle
Text and spacing styles for a FileBreadcrumb.
FileExplorer
Snapshot-backed, URI-identified filesystem tree with editing and context menus.
FileExplorerCreateDir
Committed inline directory-creation payload.
FileExplorerCreateFile
Committed inline file-creation payload.
FileExplorerIoResponse
Completed local directory request returned by the worker.
FileExplorerMove
Resolved drag/drop move intent.
FileExplorerNode
Caller-owned recursive file-explorer node.
FileExplorerRename
Committed inline rename payload.
FileExplorerRow
Flat visible row produced from a recursive FileExplorerNode tree.
FileExplorerStyle
File explorer styling delegated to the underlying tree view.
FileIconVisual
Icon identifier and optional recommended foreground tint.
FileTreeModelBridge
Applies precise filesystem deltas to a retained UI model without exporting or cloning a recursive tree snapshot.
FileTreeNode
One arena record in a FileTreeStore.
FileTreeNodeId
Store-local index into FileTreeStore::nodes.
FileTreeOptions
Complete policy snapshot for synchronous or asynchronous tree loading.
FileTreeStore
Retained arena, URI index, expansion state, and visible-row cache.
LocalFileExplorer
File explorer that resolves a native root and owns a background local worker.
LocalFileExplorerIoWorker
Owned request/response channels and worker thread for local listings.
RetainedFileExplorer
Filesystem explorer backed by a retained TreeModelHandle. Node metadata is resolved only for the row being interacted with; ordinary build, layout, paint, and scroll never reconstruct a recursive snapshot.

Enums§

DirLoadState
Retained directory-listing state for one node.
FileExplorerAction
High-level intent emitted by snapshot and retained file explorers.
FileExplorerIoRequest
Command sent to the local filesystem worker.
FileExplorerModelEvent
Identity-aware event emitted by RetainedFileExplorer. The opaque node IDs let a filesystem coordinator mutate its store without rediscovering a node from a path that may already have changed.
FileExplorerSize
Row-density preset for file explorer tree styling.
FileTreeLoadMode
Policy deciding which directory levels are read proactively.
FileTreeModelBridgeError
Failure while constructing or updating a FileTreeModelBridge.
LargeDirectoryPolicy
Behavior when a listing exceeds its configured per-directory limit.
LocalFileExplorerCacheMode
Cache behavior applied when a user toggles a local directory.
LocalFileExplorerLoadingMode
Local runtime directory-request strategy.
SymlinkTraversalPolicy
Policy for descending into entries known to be directory symlinks.

Functions§

breadcrumb_segments
Builds cumulative breadcrumb segments for a URI and optional base.
dedupe_file_uris
Removes duplicate URIs while preserving first-occurrence order.
file_icon_for_entry
Chooses an icon from an entry’s kind, symlink target, and name.
file_icon_for_name
Chooses a Devicons glyph for a filename, with a generic-file fallback.
file_icon_visual_for_entry
Chooses both icon and recommended tint for a filesystem entry.
file_icon_visual_for_name
Chooses a filename glyph and its Devicons or fallback tint.
file_uri_ancestors_between
Returns the inclusive, root-to-target URI chain when root is an ancestor.
file_uri_is_ancestor_or_self
Tests URI ancestry with scheme, authority, and path-component boundaries.
file_uri_parent
Returns the lexical parent while preserving scheme and authority.
flatten_file_nodes
Flattens roots and descendants whose exact branch URI is expanded.
load_file_tree
Loads one provider-backed root into a recursive explorer snapshot.
local_file_tree_nodes
Synchronously snapshots a native directory with provider-neutral policies.
sort_file_nodes
Sorts every sibling slice recursively, directories first then by name.