Interface DraggableItem

A file/dir being dragged out of an app. bytes is present only for a small file the source chose to inline (transferred zero-copy); a dir or an over-cap file carries the reference only (kind/name/mountId/relPath).

interface DraggableItem {
    bytes?: Uint8Array<ArrayBufferLike>;
    kind: "file" | "dir";
    mountId: string;
    name: string;
    relPath: string;
}

Properties

bytes?: Uint8Array<ArrayBufferLike>

Optional inlined content for a small file.

kind: "file" | "dir"
mountId: string

Which mounted filesystem the item lives in.

name: string

Basename — display only.

relPath: string

Path within that mount (leading slash, no ..).