Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface FileSystem

Hierarchy

  • FileSystem

Implemented by

Index

Methods

existsSync

  • existsSync(path: string): boolean

mkdir

  • mkdir(path: string, options: number | string | MakeDirectoryOptions | null): Promise<void>
  • Parameters

    • path: string
    • Optional options: number | string | MakeDirectoryOptions | null

    Returns Promise<void>

mkdirSync

  • mkdirSync(path: string, options: number | string | MakeDirectoryOptions | null): void
  • Parameters

    • path: string
    • Optional options: number | string | MakeDirectoryOptions | null

    Returns void

readFile

  • readFile(path: string, encoding: undefined | string): Promise<string | Buffer>
  • readFile(path: string, encoding: undefined | string): Promise<string>
  • Parameters

    • path: string
    • Optional encoding: undefined | string

    Returns Promise<string | Buffer>

  • Parameters

    • path: string
    • Optional encoding: undefined | string

    Returns Promise<string>

readFileSync

  • readFileSync(path: string, encoding: string): string
  • readFileSync(path: string, encoding: undefined | string): string | Buffer
  • Parameters

    • path: string
    • encoding: string

    Returns string

  • Parameters

    • path: string
    • Optional encoding: undefined | string

    Returns string | Buffer

stat

  • stat(path: string): Promise<Stats>

statSync

  • statSync(path: string): Stats

unlink

  • unlink(path: string): Promise<void>

unlinkSync

  • unlinkSync(path: string): void

utimes

  • utimes(path: string, atime: number, mtime: number): Promise<void>
  • Parameters

    • path: string
    • atime: number
    • mtime: number

    Returns Promise<void>

utimesSync

  • utimesSync(path: string, atime: number, mtime: number): void

writeFile

  • writeFile(path: string, data: string | Buffer): Promise<void>
  • Parameters

    • path: string
    • data: string | Buffer

    Returns Promise<void>

writeFileSync

  • writeFileSync(path: string, data: string | Buffer): void

Generated using TypeDoc