t×tecexpressby TeKOcloud
ENv0.7.1
API & Datentypen / VUE

TxFileEntry.

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.

ts
interface TxFileEntry {
  id: string
  parentId: string | null
  name: string
  isDirectory: boolean
  size?: number
  modified?: Date
  content?: Blob
}
FeldBedeutung
idEindeutige stabile ID.
parentIdElternordner-ID; null bezeichnet die Wurzel.
nameName des Eingabefelds beziehungsweise Dateiname.
isDirectoryKennzeichnet einen Ordner.
sizeDateigröße in Bytes.
modifiedLetzter Änderungszeitpunkt.
contentEigener Inhalt beziehungsweise Dateiinhalt als Blob.
ts
import type { TxFileEntry } from '@tekocloud.de/tecexpress'
const example: TxFileEntry = { id: '1', parentId: null, name: 'Documents', isDirectory: true }
console.log(example)