t×tecexpressby TeKOcloud
DEv0.7.1
API & types / VUE

TxFileEntry.

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.

ts
interface TxFileEntry {
  id: string
  parentId: string | null
  name: string
  isDirectory: boolean
  size?: number
  modified?: Date
  content?: Blob
}
FieldMeaning
idUnique stable ID.
parentIdParent directory ID; null denotes the root.
nameInput field name or file name.
isDirectoryIdentifies a directory.
sizeFile size in bytes.
modifiedLast modification time.
contentCustom content or file contents as a Blob.
ts
import type { TxFileEntry } from '@tekocloud.de/tecexpress'
const example: TxFileEntry = { id: '1', parentId: null, name: 'Documents', isDirectory: true }
console.log(example)