Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ZipFSProvider

Hierarchy

  • ZipFSProvider

Implements

  • FileSystemProvider

Properties

Private _emitter

_emitter: EventEmitter<FileChangeEvent[]> = new vscode.EventEmitter<Array<vscode.FileChangeEvent>>()

Private fs

fs: PosixFS = new PosixFS(new VirtualFS({baseFs: new ZipOpenFS({libzip: getLibzipSync(),// The cache is disabled because we need to support read after write (ZIP_ER_CHANGED)useCache: false,}),}))

onDidChangeFile

onDidChangeFile: Event<FileChangeEvent[]> = this._emitter.event

Methods

createDirectory

  • createDirectory(uri: Uri): void

delete

  • delete(uri: Uri, options: object): void

readDirectory

  • readDirectory(uri: Uri): Array<[string, FileType]>

readFile

  • readFile(uri: Uri): Uint8Array

rename

  • rename(oldUri: Uri, newUri: Uri, options: object): void

stat

  • stat(uri: Uri): FileStat

watch

  • watch(resource: Uri, opts: any): Disposable

writeFile

  • writeFile(uri: Uri, content: Uint8Array, options: object): void

Generated using TypeDoc