FileItem
Reference — FileItem in the Mutka module API.
Interface: FileItem
Defined in: types.ts:14
A single entry returned by the Rust read_dir command.
Properties
extension?
optional extension?: string;Defined in: types.ts:26
Lowercase extension without dot, e.g. "pdf". Undefined for dirs or extensionless files.
hasCustomIcon
hasCustomIcon: boolean;Defined in: types.ts:44
True if this folder carries a custom Finder icon (an "Icon\r" file). Still navigable, but the UI shows its real icon instead of the generic folder one.
isDir
isDir: boolean;Defined in: types.ts:20
True if this entry is a directory
isHidden
isHidden: boolean;Defined in: types.ts:28
True for dotfiles (name starts with "."). The UI dims these like Finder.
isPackage
isPackage: boolean;Defined in: types.ts:39
True if this directory is a macOS package/bundle (.app, .bundle, …). Though
isDir is true, the UI launches it like a file and shows its real icon
instead of navigating into it.
isSymlink
isSymlink: boolean;Defined in: types.ts:33
True if this entry is a symbolic link. isDir/size/modified reflect the
link's TARGET (Rust follows it), so a link to a folder navigates in-app.
modified
modified: number;Defined in: types.ts:24
Last-modified timestamp in UNIX seconds
name
name: string;Defined in: types.ts:16
Filename without path, e.g. "document.pdf"
path
path: string;Defined in: types.ts:18
Absolute POSIX path, e.g. "/Users/ilian/Documents/document.pdf"
size
size: number;Defined in: types.ts:22
File size in bytes. 0 for directories.