Options
All
  • Public
  • Public/Protected
  • All
Menu

Class FakeFS

Hierarchy

Constructors

constructor

  • new FakeFS(pathUtils: any): FakeFS

Methods

changeFileBufferPromise

  • changeFileBufferPromise(p: any, content: any, __namedParameters?: object): Promise<void>
  • Parameters

    • p: any
    • content: any
    • Default value __namedParameters: object = {}
      • mode: any

    Returns Promise<void>

changeFileBufferSync

  • changeFileBufferSync(p: any, content: any, __namedParameters?: object): void
  • Parameters

    • p: any
    • content: any
    • Default value __namedParameters: object = {}
      • mode: any

    Returns void

changeFilePromise

  • changeFilePromise(p: any, content: any, opts?: object): Promise<void>
  • Parameters

    • p: any
    • content: any
    • Default value opts: object = {}

    Returns Promise<void>

changeFileSync

  • changeFileSync(p: any, content: any, opts?: object): void
  • Parameters

    • p: any
    • content: any
    • Default value opts: object = {}

    Returns void

changeFileTextPromise

  • changeFileTextPromise(p: any, content: any, __namedParameters?: object): Promise<void>
  • Parameters

    • p: any
    • content: any
    • Default value __namedParameters: object = {}
      • automaticNewlines: any
      • mode: any

    Returns Promise<void>

changeFileTextSync

  • changeFileTextSync(p: any, content: any, __namedParameters?: object): void
  • Parameters

    • p: any
    • content: any
    • Default value __namedParameters: object = {}
      • automaticNewlines: boolean
      • mode: any

    Returns void

checksumFilePromise

  • checksumFilePromise(path: any, __namedParameters?: object): Promise<string>
  • Parameters

    • path: any
    • Default value __namedParameters: object = {}
      • algorithm: string

    Returns Promise<string>

copyPromise

  • copyPromise(destination: any, source: any, __namedParameters?: object): Promise<void>
  • Parameters

    • destination: any
    • source: any
    • Default value __namedParameters: object = {}
      • baseFs: this
      • linkStrategy: null
      • overwrite: boolean
      • stableSort: boolean
      • stableTime: boolean

    Returns Promise<void>

copySync

  • copySync(destination: any, source: any, __namedParameters?: object): void
  • Parameters

    • destination: any
    • source: any
    • Default value __namedParameters: object = {}
      • baseFs: this
      • overwrite: boolean

    Returns void

genTraversePromise

  • genTraversePromise(init: any, __namedParameters?: object): AsyncGenerator<any, void, unknown>
  • Parameters

    • init: any
    • Default value __namedParameters: object = {}
      • stableSort: boolean

    Returns AsyncGenerator<any, void, unknown>

lockPromise

  • lockPromise(affectedPath: any, callback: any): Promise<any>
  • Parameters

    • affectedPath: any
    • callback: any

    Returns Promise<any>

mkdirpPromise

  • mkdirpPromise(p: any, __namedParameters?: object): Promise<any>
  • Parameters

    • p: any
    • Default value __namedParameters: object = {}
      • chmod: any
      • utimes: any

    Returns Promise<any>

mkdirpSync

  • mkdirpSync(p: any, __namedParameters?: object): any
  • Parameters

    • p: any
    • Default value __namedParameters: object = {}
      • chmod: any
      • utimes: any

    Returns any

movePromise

  • movePromise(fromP: any, toP: any): Promise<void>
  • Parameters

    • fromP: any
    • toP: any

    Returns Promise<void>

moveSync

  • moveSync(fromP: any, toP: any): void

preserveTimePromise

  • preserveTimePromise(p: any, cb: any): Promise<void>

preserveTimeSync

  • preserveTimeSync(p: any, cb: any): Promise<void>

readJsonPromise

  • readJsonPromise(p: any): Promise<any>

readJsonSync

  • readJsonSync(p: any): any

removePromise

  • removePromise(p: any, __namedParameters?: object): Promise<void>
  • Parameters

    • p: any
    • Default value __namedParameters: object = {}
      • maxRetries: number
      • recursive: boolean

    Returns Promise<void>

removeSync

  • removeSync(p: any, __namedParameters?: object): void
  • Parameters

    • p: any
    • Default value __namedParameters: object = {}
      • recursive: boolean

    Returns void

writeJsonPromise

  • writeJsonPromise(p: any, data: any): Promise<any>

writeJsonSync

  • writeJsonSync(p: any, data: any): any

Generated using TypeDoc