Interface IFile

Index

Properties

Methods

Properties

public cachedContents: string

public digest: string

public path: string

public realPath: string

public symlink: boolean

Methods

public detectResurrection()

public detectResurrectionAfterDelay()

public exists(): boolean

Returns

boolean

public getBaseName(): string

Returns

string

public getDigest(): string

Returns

string

public getPath(): string

Returns

string

public getRealPathSync(): string

Returns

string

public handleEventSubscriptions()

public handleNativeChangeEvent(eventType: string, eventPath: string)

Parameters

  • eventType: string
  • eventPath: string

public read(flushCache?: boolean): Promise

Parameters

  • flushCache?: boolean optional

Returns

Promise

public readSync(flushCache: boolean): string

Parameters

  • flushCache: boolean

Returns

string

public setDigest(contents: string)

Parameters

  • contents: string

public setPath(path: string)

Parameters

  • path: string

public subscribeToNativeChangeEvents()

public unsubscribeFromNativeChangeEvents()

public write(text: string)

Parameters

  • text: string

public writeFileWithPrivilegeEscalationSync(filePath: string, text: string)

Parameters

  • filePath: string
  • text: string