Options
All
  • Public
  • Public/Protected
  • All
Menu

Class FileHandle<P>

Type parameters

Hierarchy

  • FileHandle

Constructors

constructor

Properties

[kBaseFs]

[kBaseFs]: FakeFS<P>

[kClosePromise]

[kClosePromise]: Promise<void> | undefined = undefined

[kCloseReject]

[kCloseReject]: function | undefined = undefined

[kCloseResolve]

[kCloseResolve]: function | undefined = undefined

[kFd]

[kFd]: number

[kRefs]

[kRefs]: number = 1

Accessors

fd

  • get fd(): number

Methods

[kRef]

  • [kRef](caller: Function): void

[kUnref]

  • [kUnref](): void

appendFile

chmod

  • chmod(mode: number): Promise<void>

chown

  • chown(uid: number, gid: number): Promise<void>

close

  • close(): Promise<void>

createReadStream

createWriteStream

datasync

  • datasync(): Promise<void>

read

readFile

  • readFile(options?: object | null): Promise<Buffer>
  • readFile(options: object | BufferEncoding): Promise<string>

readLines

readv

  • readv(buffers: ReadonlyArray<NodeJS.ArrayBufferView>, position?: undefined | number): Promise<ReadVResult>

stat

  • stat(opts?: StatOptions & object): Promise<Stats>
  • stat(opts: StatOptions & object): Promise<BigIntStats>

sync

  • sync(): Promise<void>

truncate

  • truncate(len?: undefined | number): Promise<void>

utimes

  • utimes(atime: string | number | Date, mtime: string | number | Date): Promise<void>

write

writeFile

writev

  • writev(buffers: Array<NodeJS.ArrayBufferView>, position?: undefined | number): Promise<WriteVResult>

Generated using TypeDoc