Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BasePortableFakeFS

Hierarchy

Constructors

Protected constructor

Properties

pathUtils

Static DEFAULT_TIME

DEFAULT_TIME: number = 315532800

Methods

Abstract accessPromise

  • accessPromise(p: PortablePath, mode?: undefined | number): Promise<void>

Abstract accessSync

  • accessSync(p: PortablePath, mode?: undefined | number): void

Abstract appendFilePromise

Abstract appendFileSync

changeFilePromise

changeFileSync

Abstract chmodPromise

  • chmodPromise(p: PortablePath, mask: number): Promise<void>

Abstract chmodSync

Abstract chownPromise

  • chownPromise(p: PortablePath, uid: number, gid: number): Promise<void>

Abstract chownSync

  • chownSync(p: PortablePath, uid: number, gid: number): void

Abstract closePromise

  • closePromise(fd: number): Promise<void>

Abstract closeSync

  • closeSync(fd: number): void

Abstract copyFilePromise

Abstract copyFileSync

copyPromise

  • copyPromise(destination: PortablePath, source: PortablePath, options?: undefined | object): Promise<void>
  • copyPromise<P2>(destination: PortablePath, source: P2, options: object): Promise<void>

copySync

Abstract createReadStream

Abstract createWriteStream

Abstract existsPromise

Abstract existsSync

Abstract fstatPromise

  • fstatPromise(fd: number): Promise<Stats>
  • fstatPromise(fd: number, opts: object): Promise<BigIntStats>
  • fstatPromise(fd: number, opts?: undefined | object): Promise<BigIntStats | Stats>

Abstract fstatSync

  • fstatSync(fd: number): Stats
  • fstatSync(fd: number, opts: object): BigIntStats
  • fstatSync(fd: number, opts?: undefined | object): BigIntStats | Stats

genTraversePromise

  • genTraversePromise(init: PortablePath, __namedParameters?: object): AsyncGenerator<P extends undefined | null ? never : P, void, unknown>

Abstract getExtractHint

Abstract getRealPath

Abstract linkPromise

Abstract linkSync

lockPromise

  • lockPromise<T>(affectedPath: PortablePath, callback: function): Promise<T>

Abstract lstatPromise

  • lstatPromise(p: PortablePath): Promise<Stats>
  • lstatPromise(p: PortablePath, opts: object): Promise<BigIntStats>
  • lstatPromise(p: PortablePath, opts?: undefined | object): Promise<BigIntStats | Stats>

Abstract lstatSync

Optional lutimesPromise

  • lutimesPromise(p: PortablePath, atime: Date | string | number, mtime: Date | string | number): Promise<void>

Optional lutimesSync

  • lutimesSync(p: PortablePath, atime: Date | string | number, mtime: Date | string | number): void

Abstract mkdirPromise

Abstract mkdirSync

mkdirpPromise

  • mkdirpPromise(p: PortablePath, __namedParameters?: object): Promise<void>

mkdirpSync

  • mkdirpSync(p: PortablePath, __namedParameters?: object): void

movePromise

moveSync

Abstract openPromise

  • openPromise(p: PortablePath, flags: string, mode?: undefined | number): Promise<number>

Abstract openSync

  • openSync(p: PortablePath, flags: string, mode?: undefined | number): number

Abstract opendirPromise

Abstract opendirSync

preserveTimePromise

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

preserveTimeSync

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

Abstract readFilePromise

Abstract readFileSync

readJsonPromise

readJsonSync

Abstract readPromise

  • readPromise(fd: number, buffer: Buffer, offset?: undefined | number, length?: undefined | number, position?: number | null): Promise<number>

Abstract readSync

  • readSync(fd: number, buffer: Buffer, offset?: undefined | number, length?: undefined | number, position?: number | null): number

Abstract readdirPromise

Abstract readdirSync

Abstract readlinkPromise

Abstract readlinkSync

Abstract realpathPromise

Abstract realpathSync

removePromise

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

removeSync

  • removeSync(p: PortablePath, __namedParameters?: object): void

Abstract renamePromise

Abstract renameSync

Abstract resolve

Abstract rmdirPromise

Abstract rmdirSync

Abstract statPromise

  • statPromise(p: PortablePath): Promise<Stats>
  • statPromise(p: PortablePath, opts: object): Promise<BigIntStats>
  • statPromise(p: PortablePath, opts?: undefined | object): Promise<BigIntStats | Stats>

Abstract statSync

Abstract symlinkPromise

Abstract symlinkSync

Abstract truncatePromise

  • truncatePromise(p: PortablePath, len?: undefined | number): Promise<void>

Abstract truncateSync

  • truncateSync(p: PortablePath, len?: undefined | number): void

Abstract unlinkPromise

Abstract unlinkSync

Abstract unwatchFile

Abstract utimesPromise

  • utimesPromise(p: PortablePath, atime: Date | string | number, mtime: Date | string | number): Promise<void>

Abstract utimesSync

  • utimesSync(p: PortablePath, atime: Date | string | number, mtime: Date | string | number): void

Abstract watch

Abstract watchFile

Abstract writeFilePromise

Abstract writeFileSync

writeJsonPromise

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

writeJsonSync

Abstract writePromise

  • writePromise(fd: number, buffer: Buffer, offset?: undefined | number, length?: undefined | number, position?: undefined | number): Promise<number>
  • writePromise(fd: number, buffer: string, position?: undefined | number): Promise<number>

Abstract writeSync

  • writeSync(fd: number, buffer: Buffer, offset?: undefined | number, length?: undefined | number, position?: undefined | number): number
  • writeSync(fd: number, buffer: string, position?: undefined | number): number

Generated using TypeDoc