Phials plugin documentation
User guide
AI Disclosure: This page was generated by an LLM and may contain inaccuracies. Hand-crafted documentation will be implemented over time on the road to 1.0

FileEntry

Since Plugin API: 1.0.0

Core file entry interface - file-type agnostic Represents a file or directory in the filesystem

Signature

interface FileEntry {
    name: string;
    path: string;
    icon?: string;
    is_file: boolean;
    is_dir: boolean;
    is_vial: boolean;
    isChildVial?: boolean;
    is_symlink?: boolean;
    symlink_target?: string | null;
    symlink_broken?: boolean;
    size: number;
    created?: number | null;
    modified?: number | null;
    exif_data: Record<string, string> | null;
    mimeType?: string;
    category?: FileCategory;
}

Members

NameTypeRequiredDescription
namestringyes-
pathstringyes-
iconstringnoHost-resolved Iconify glyph. Public directory-listing APIs populate this so plugins share Phials’ canonical file and folder icon policy.
is_filebooleanyes-
is_dirbooleanyes-
is_vialbooleanyes-
isChildVialbooleannoNested vial folder when listing inside a parent vial
is_symlinkbooleannoListing node is a symlink or Windows directory junction
symlink_targetstring | nullnoResolved absolute target when healthy; stored link text when broken
symlink_brokenbooleanno-
sizenumberyes-
creatednumber | nullno-
modifiednumber | nullno-
exif_dataRecord<string, string> | nullyesRaw metadata from filesystem/EXIF - parsed lazily by plugins
mimeTypestringnoComputed lazily based on extension
categoryFileCategorynoComputed lazily based on extension