OptionaltargetPath: string
The path to get data for. If empty, uses CWD.
Options including directory flag and sort.
Result<ListingItem[]> - Ok with items or Err with error message.
List contents of a directory (Virtual or Native). Convenience method that fetches data and renders it. Implements optimistic rendering with progress feedback:
OptionaltargetPath: string
The path to list. If empty, uses CWD.
Listing options (long, human, sort, reverse, directory).
Optionalkept: { listing?: VfsListing }Resolves a directory listing with its freshness. A fresh cached
listing is served as is. A stale one is served at once only when a
host can carry the refresh (an ambient listener exists — the daemon),
with the revalidation running behind it; at a plain console the stale
entry is refetched in line, because nobody would deliver the refresh.
/proc paths never touch this cache.
OptionaltargetPath: string
The path to list; the working directory when empty.
Sort and -d options.
The listing, its absolute path, and whether it is current.
Gets data for a directory (Virtual or Native). Separated from rendering to allow Result pattern.