Datei-/Ordnermetadaten mit stabiler ID; parentId null bezeichnet das Wurzelverzeichnis.
Dart copyWith behält nicht angegebene Felder bei; root: true setzt parentId ausdrücklich auf null. parentId: null allein behält den bisherigen Elternordner.
interface TxFileEntry {
id: string
parentId: string | null
name: string
isDirectory: boolean
size?: number
modified?: Date
content?: Blob
}| Feld | Bedeutung |
|---|---|
| id | Eindeutige stabile ID. |
| parentId | Elternordner-ID; null bezeichnet die Wurzel. |
| name | Name des Eingabefelds beziehungsweise Dateiname. |
| isDirectory | Kennzeichnet einen Ordner. |
| size | Dateigröße in Bytes. |
| modified | Letzter Änderungszeitpunkt. |
| content | Eigener Inhalt beziehungsweise Dateiinhalt als Blob. |
import type { TxFileEntry } from '@tekocloud.de/tecexpress'
const example: TxFileEntry = { id: '1', parentId: null, name: 'Documents', isDirectory: true }
console.log(example)