Options
All
  • Public
  • Public/Protected
  • All
Menu

Class FileHandle

Hierarchy

  • FileHandle

Constructors

constructor

  • new FileHandle(fd: any, baseFs: any): FileHandle

Accessors

fd

  • get fd(): any

Methods

[(_a = kRefs, _b = kClosePromise, _c = kCloseResolve, _d = kCloseReject, kRef)]

  • [(_a = kRefs, _b = kClosePromise, _c = kCloseResolve, _d = kCloseReject, kRef)](caller: any): void

[kUnref]

  • [kUnref](): void

appendFile

  • appendFile(data: any, options: any): Promise<any>
  • Parameters

    • data: any
    • options: any

    Returns Promise<any>

chmod

  • chmod(mode: any): Promise<any>

chown

  • chown(uid: any, gid: any): Promise<any>

close

  • close(): any

createReadStream

  • createReadStream(options: any): any

createWriteStream

  • createWriteStream(options: any): any

datasync

  • datasync(): void

read

  • read(bufferOrOptions: any, offset: any, length: any, position: any): Promise<object>
  • Parameters

    • bufferOrOptions: any
    • offset: any
    • length: any
    • position: any

    Returns Promise<object>

readFile

  • readFile(options: any): Promise<any>

readLines

  • readLines(options: any): Interface

readv

  • readv(buffers: any, position: any): void

stat

  • stat(opts: any): Promise<any>

sync

  • sync(): void

truncate

  • truncate(len: any): Promise<any>

utimes

  • utimes(atime: any, mtime: any): void

write

  • write(...args: any[]): Promise<object>
  • Parameters

    • Rest ...args: any[]

    Returns Promise<object>

writeFile

  • writeFile(data: any, options: any): Promise<void>
  • Parameters

    • data: any
    • options: any

    Returns Promise<void>

writev

  • writev(buffers: any, position: any): Promise<object>
  • Parameters

    • buffers: any
    • position: any

    Returns Promise<object>

Generated using TypeDoc