Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MemoryFileSystem

Hierarchy

  • MemoryFileSystem

Implements

Index

Properties

Private fs

fs: MemoryFileSystem = new MemoryFileSystemImpl()

Private mtimes

mtimes: Map<string, TimeStamp> = new Map()

Private now

now: number = 10000

Methods

exists

  • exists(path: string): Promise<boolean>

existsSync

  • existsSync(path: string): boolean

mkdir

  • mkdir(path: string, options?: MakeDirectoryOptions): Promise<void>
  • Parameters

    • path: string
    • Default value options: MakeDirectoryOptions = {}

    Returns Promise<void>

mkdirSync

  • mkdirSync(path: string, options?: MakeDirectoryOptions): void
  • Parameters

    • path: string
    • Default value options: MakeDirectoryOptions = {}

    Returns void

readFile

  • readFile(path: string, encoding: undefined | string): any

readFileSync

  • readFileSync(path: string, encoding: undefined | string): any

stat

  • stat(path: string): Promise<Stats>

statSync

  • statSync(path: string): Stats

unlink

  • unlink(path: string): Promise<void>

unlinkSync

  • unlinkSync(path: string): void

utimes

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

utimesSync

  • utimesSync(path: string, atime: number, mtime: number): void

writeFile

  • writeFile(path: string, data: string): Promise<void>

writeFileSync

  • writeFileSync(path: string, data: any): void

Generated using TypeDoc