This is a helper class to allow building a file tree for uploading It allows to create virtual directories

Hierarchy

  • File
    • Directory

Constructors

Properties

name: string
type: string

Accessors

Methods

  • Add a child to the directory. If it is a nested child the parents will be created if not already exist.

    Parameters

    • file: FileSystemEntry | File

      The child to add

    Returns Promise<void>

  • Add multiple children at once

    Parameters

    • files: (FileSystemEntry | File)[]

      The files to add

    Returns Promise<void>

  • Returns Promise<ArrayBuffer>

  • Parameters

    • Optionalstart: number
    • Optionalend: number
    • OptionalcontentType: string

    Returns Blob

  • Returns ReadableStream<Uint8Array>

  • Returns Promise<string>