Options
All
  • Public
  • Public/Protected
  • All
Menu

Class File

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

  • new File(__namedParameters: object): File
  • Parameters

    • __namedParameters: object
      • filepath: any
      • options: any

    Returns File

Properties

dirname

dirname: string

name

name: string

options

options: any

path

path: string

Methods

Abstract content

  • content(opts?: ReadOptions): any
  • Return the file content with desired read options

    Parameters

    • Optional opts: ReadOptions

    Returns any

Abstract empty

  • empty(): any
  • Clear the file content and it's size

    Returns any

Abstract remove

  • remove(): any

Generated using TypeDoc