Options
All
  • Public
  • Public/Protected
  • All
V1.7
  • V1.6
  • V1.7
Menu

Class FileInfo

Class that encapsulates information about a file argument.

Hierarchy

  • FileInfo

Index

Constructors

constructor

Methods

getFileDescriptor

  • getFileDescriptor(): number
  • Returns the file descriptor.

    priv

    none

    Returns number

    the file descriptor.

getFileName

  • getFileName(): string
  • Returns the name of the file.

    The file can be accessed only via the enclosed file descriptor and not using this name. This is for information only.

    priv

    none

    Returns string

    the file name.

getMimeType

  • getMimeType(): string
  • Returns the mime type of the file.

    priv

    none

    Returns string

    the file's mime type.

setFileDescriptor

  • setFileDescriptor(fd: number): void
  • Sets the file descriptor.

    priv

    none

    Parameters

    • fd: number

      the file descriptor.

    Returns void

setFileName

  • setFileName(filename: string): void
  • Sets the name of the file.

    The file can be accessed only via the enclosed file descriptor and not using this name. This is for information only.

    priv

    none

    Parameters

    • filename: string

      the file name (for information only).

    Returns void

setMimeType

  • setMimeType(mimeType: string): void
  • Sets the mime type of the file.

    priv

    none

    Parameters

    • mimeType: string

      the file's mime type.

    Returns void

Generated using TypeDoc