Options
All
  • Public
  • Public/Protected
  • All
Menu

Implementation of File interface on node file system

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly baseDir

baseDir: string

Readonly cache

cache: Record<string, object>

path

path: string

Accessors

dirty

  • get dirty(): boolean

extension

  • get extension(): string

name

  • get name(): string

realPath

  • get realPath(): string

Methods

flush

  • flush(): Promise<this>

getContent

  • getContent(encoding?: string): Promise<string>

getContentBuffer

  • getContentBuffer(): Promise<Buffer>

getContentSync

  • getContentSync(encoding?: string): string

Protected invalidateCache

  • invalidateCache(): this

isBinary

  • isBinary(): Promise<boolean>

isExecutable

  • isExecutable(): Promise<boolean>

isReadable

  • isReadable(): Promise<boolean>

recordAction

rename

  • rename(name: string): Promise<this>

replace

  • replace(re: RegExp, replacement: string): Promise<this>

replaceAll

  • replaceAll(oldLiteral: string, newLiteral: string): Promise<this>

setContent

  • setContent(content: string): Promise<this>

setContentSync

  • setContentSync(content: string): this

setPath

  • setPath(path: string): Promise<this>

Generated using TypeDoc