File/directory metadata with a stable ID; a null parentId denotes the root directory.
Dart copyWith preserves omitted fields; root: true explicitly sets parentId to null. Passing parentId: null alone preserves the existing parent.
interface TxFileEntry {
id: string
parentId: string | null
name: string
isDirectory: boolean
size?: number
modified?: Date
content?: Blob
}| Field | Meaning |
|---|---|
| id | Unique stable ID. |
| parentId | Parent directory ID; null denotes the root. |
| name | Input field name or file name. |
| isDirectory | Identifies a directory. |
| size | File size in bytes. |
| modified | Last modification time. |
| content | Custom content or file contents as a Blob. |
import type { TxFileEntry } from '@tekocloud.de/tecexpress'
const example: TxFileEntry = { id: '1', parentId: null, name: 'Documents', isDirectory: true }
console.log(example)