Options
All
  • Public
  • Public/Protected
  • All
Menu

Backend component.

JSON-RPC server exposing a wrapped file system provider remotely.

Hierarchy

  • FileSystemProviderServer

Implements

Index

Constructors

Properties

BUFFER_SIZE: number = ...
client: undefined | RemoteFileSystemClient
provider: FileSystemProvider & Partial<Disposable>

Wrapped file system provider.

readFileStreamSeq: number = 0
toDispose: DisposableCollection = ...
watchers: Map<number, Disposable> = ...

Mapping of watcherId to a disposable watcher handle.

Methods

  • access(resource: string, mode?: number): Promise<void>
  • close(fd: number): Promise<void>
  • dispose(): void
  • fsPath(resource: string): Promise<string>
  • init(): void
  • mkdir(resource: string): Promise<void>
  • read(fd: number, pos: number, length: number): Promise<{ bytes: Uint8Array; bytesRead: number }>
  • readFile(resource: string): Promise<Uint8Array>
  • readdir(resource: string): Promise<[string, FileType][]>
  • stat(resource: string): Promise<Stat>
  • unwatch(watcherId: number): Promise<void>
  • watch(requestedWatcherId: number, resource: string, opts: WatchOptions): Promise<void>
  • write(fd: number, pos: number, data: Uint8Array, offset: number, length: number): Promise<number>
  • writeFile(resource: string, content: Uint8Array, opts: FileWriteOptions): Promise<void>