Skip to main content

NoFS

Hierarchy

Index

Constructors

constructor

  • Returns NoFS

Properties

publicreadonlypathUtils

staticreadonlyinstance

instance: NoFS = ...

Methods

accessPromise

  • accessPromise(): Promise<never>
  • Returns Promise<never>

accessSync

  • accessSync(): never
  • Returns never

appendFilePromise

  • appendFilePromise(): Promise<never>
  • Returns Promise<never>

appendFileSync

  • appendFileSync(): never
  • Returns never

changeFilePromise

  • changeFilePromise(p: PortablePath, content: Buffer): Promise<void>
  • changeFilePromise(p: PortablePath, content: string, opts?: Partial<{ automaticNewlines: boolean; mode: number }>): Promise<void>
  • Parameters

    Returns Promise<void>

changeFileSync

  • changeFileSync(p: PortablePath, content: Buffer): void
  • changeFileSync(p: PortablePath, content: string, opts?: Partial<{ automaticNewlines: boolean; mode: number }>): void
  • Parameters

    Returns void

checksumFilePromise

  • checksumFilePromise(path: PortablePath, __namedParameters?: { algorithm?: string }): Promise<string>
  • Parameters

    • path: PortablePath
    • __namedParameters: { algorithm?: string } = {}

    Returns Promise<string>

chmodPromise

  • chmodPromise(): Promise<never>
  • Returns Promise<never>

chmodSync

  • chmodSync(): never
  • Returns never

chownPromise

  • chownPromise(): Promise<never>
  • Returns Promise<never>

chownSync

  • chownSync(): never
  • Returns never

closePromise

  • closePromise(): Promise<never>
  • Returns Promise<never>

closeSync

  • closeSync(): never
  • Returns never

copyFilePromise

  • copyFilePromise(): Promise<never>
  • Returns Promise<never>

copyFileSync

  • copyFileSync(): never
  • Returns never

copyPromise

  • Parameters

    Returns Promise<void>

copySync

  • copySync(destination: PortablePath, source: PortablePath, options?: { baseFs?: undefined; overwrite?: boolean }): void
  • copySync<P2>(destination: PortablePath, source: P2, options: { baseFs: FakeFS<P2>; overwrite?: boolean }): void
  • @deprecated

    Prefer using copyPromise instead


    Parameters

    Returns void

createReadStream

  • createReadStream(): never
  • Returns never

createWriteStream

  • createWriteStream(): never
  • Returns never

existsPromise

  • Parameters

    Returns Promise<never>

existsSync

  • Parameters

    Returns never

fchmodPromise

  • fchmodPromise(): Promise<never>
  • Returns Promise<never>

fchmodSync

  • fchmodSync(): never
  • Returns never

fchownPromise

  • fchownPromise(): Promise<never>
  • Returns Promise<never>

fchownSync

  • fchownSync(): never
  • Returns never

fstatPromise

  • fstatPromise(fd: number): Promise<never>
  • Parameters

    • fd: number

    Returns Promise<never>

fstatSync

  • fstatSync(fd: number): never
  • Parameters

    • fd: number

    Returns never

ftruncatePromise

  • ftruncatePromise(fd: number, len?: number): Promise<never>
  • Parameters

    • fd: number
    • optionallen: number

    Returns Promise<never>

ftruncateSync

  • ftruncateSync(fd: number, len?: number): never
  • Parameters

    • fd: number
    • optionallen: number

    Returns never

genTraversePromise

  • genTraversePromise(init: PortablePath, __namedParameters?: { stableSort?: boolean }): AsyncGenerator<PortablePath, void, unknown>
  • Parameters

    • init: PortablePath
    • __namedParameters: { stableSort?: boolean } = {}

    Returns AsyncGenerator<PortablePath, void, unknown>

getExtractHint

  • getExtractHint(): never
  • @deprecated: Moved to jsInstallUtils


    Returns never

getRealPath

  • getRealPath(): never
  • Returns never

linkPromise

  • linkPromise(): Promise<never>
  • Returns Promise<never>

linkSync

  • linkSync(): never
  • Returns never

lockPromise

  • lockPromise<T>(affectedPath: PortablePath, callback: () => Promise<T>): Promise<T>
  • Type parameters

    • T

    Parameters

    Returns Promise<T>

lstatPromise

  • Parameters

    Returns Promise<never>

lstatSync

  • Parameters

    Returns never

lutimesPromise

  • lutimesPromise(): Promise<never>
  • Returns Promise<never>

lutimesSync

  • lutimesSync(): never
  • Returns never

mkdirPromise

  • mkdirPromise(): Promise<never>
  • Returns Promise<never>

mkdirSync

  • mkdirSync(): never
  • Returns never

mkdirpPromise

  • mkdirpPromise(p: PortablePath, __namedParameters?: { chmod?: number; utimes?: [string | number | Date, string | number | Date] }): Promise<undefined | string>
  • Parameters

    • p: PortablePath
    • __namedParameters: { chmod?: number; utimes?: [string | number | Date, string | number | Date] } = {}

    Returns Promise<undefined | string>

mkdirpSync

  • mkdirpSync(p: PortablePath, __namedParameters?: { chmod?: number; utimes?: [string | number | Date, string | number | Date] }): undefined | string
  • Parameters

    • p: PortablePath
    • __namedParameters: { chmod?: number; utimes?: [string | number | Date, string | number | Date] } = {}

    Returns undefined | string

movePromise

moveSync

openPromise

  • openPromise(): Promise<never>
  • Returns Promise<never>

openSync

  • openSync(): never
  • Returns never

opendirPromise

  • opendirPromise(): Promise<never>
  • Returns Promise<never>

opendirSync

  • opendirSync(): never
  • Returns never

preserveTimePromise

  • Parameters

    Returns Promise<void>

preserveTimeSync

readFilePromise

  • readFilePromise(): Promise<never>
  • Returns Promise<never>

readFileSync

  • readFileSync(): never
  • Returns never

readJsonPromise

  • Parameters

    Returns Promise<any>

readJsonSync

  • Parameters

    Returns any

readPromise

  • readPromise(): Promise<never>
  • Returns Promise<never>

readSync

  • readSync(): never
  • Returns never

readdirPromise

  • readdirPromise(): Promise<never>
  • Returns Promise<never>

readdirSync

  • readdirSync(): never
  • Returns never

readlinkPromise

  • readlinkPromise(): Promise<never>
  • Returns Promise<never>

readlinkSync

  • readlinkSync(): never
  • Returns never

realpathPromise

  • realpathPromise(): Promise<never>
  • Returns Promise<never>

realpathSync

  • realpathSync(): never
  • Returns never

removePromise

  • removePromise(p: PortablePath, __namedParameters?: { maxRetries?: number; recursive?: boolean }): Promise<void>
  • Parameters

    • p: PortablePath
    • __namedParameters: { maxRetries?: number; recursive?: boolean } = {}

    Returns Promise<void>

removeSync

  • removeSync(p: PortablePath, __namedParameters?: { recursive?: boolean }): void
  • Parameters

    • p: PortablePath
    • __namedParameters: { recursive?: boolean } = {}

    Returns void

renamePromise

  • renamePromise(): Promise<never>
  • Returns Promise<never>

renameSync

  • renameSync(): never
  • Returns never

resolve

  • resolve(): never
  • Returns never

rmdirPromise

  • rmdirPromise(): Promise<never>
  • Returns Promise<never>

rmdirSync

  • rmdirSync(): never
  • Returns never

statPromise

  • statPromise(): Promise<never>
  • Returns Promise<never>

statSync

  • statSync(): never
  • Returns never

symlinkPromise

  • symlinkPromise(): Promise<never>
  • Returns Promise<never>

symlinkSync

  • symlinkSync(): never
  • Returns never

truncatePromise

  • truncatePromise(): Promise<never>
  • Returns Promise<never>

truncateSync

  • truncateSync(): never
  • Returns never

unlinkPromise

  • unlinkPromise(): Promise<never>
  • Returns Promise<never>

unlinkSync

  • unlinkSync(): never
  • Returns never

unwatchFile

  • unwatchFile(): never
  • Returns never

utimesPromise

  • utimesPromise(): Promise<never>
  • Returns Promise<never>

utimesSync

  • utimesSync(): never
  • Returns never

watch

  • watch(): never
  • Returns never

watchFile

  • watchFile(): never
  • Returns never

writeFilePromise

  • writeFilePromise(): Promise<never>
  • Returns Promise<never>

writeFileSync

  • writeFileSync(): never
  • Returns never

writeJsonPromise

  • writeJsonPromise(p: PortablePath, data: any, __namedParameters?: { compact?: boolean }): Promise<void>
  • Parameters

    • p: PortablePath
    • data: any
    • __namedParameters: { compact?: boolean } = {}

    Returns Promise<void>

writeJsonSync

  • writeJsonSync(p: PortablePath, data: any, __namedParameters?: { compact?: boolean }): void
  • Parameters

    • p: PortablePath
    • data: any
    • __namedParameters: { compact?: boolean } = {}

    Returns void

writePromise

  • writePromise(): Promise<never>
  • Returns Promise<never>

writeSync

  • writeSync(): never
  • Returns never