Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DelegatingFileSystemProvider

Hierarchy

  • DelegatingFileSystemProvider

Implements

Index

Constructors

Properties

onDidChangeFile: Event<readonly FileChange[]> = ...
onDidChangeFileEmitter: Emitter<readonly FileChange[]> = ...
onFileWatchError: Event<void> = ...
onFileWatchErrorEmitter: Emitter<void> = ...
toDispose: DisposableCollection = ...

Accessors

  • get onDidChangeCapabilities(): Event<void>

Methods

  • access(resource: URI, mode?: number): Promise<void>
  • close(fd: number): Promise<void>
  • dispose(): void
  • fromUnderlyingResource(resource: URI): undefined | URI
  • Converts from an underlying fs provider resource format.

    For example converting file resources under a user home to user-storage resource:

    • file://home/.theia/settings.json => user-storage:/user/settings.json
    • file://documents/some-document.txt => undefined

    Parameters

    • resource: URI

    Returns undefined | URI

  • fsPath(resource: URI): Promise<string>
  • handleFileChanges(changes: readonly FileChange[]): void
  • mkdir(resource: URI): Promise<void>
  • read(fd: number, pos: number, data: Uint8Array, offset: number, length: number): Promise<number>
  • readFile(resource: URI): Promise<Uint8Array>
  • readFileStream(resource: URI, opts: FileReadStreamOptions, token: CancellationToken): ReadableStreamEvents<Uint8Array>
  • readdir(resource: URI): Promise<[string, FileType][]>
  • stat(resource: URI): Promise<Stat>
  • toUnderlyingResource(resource: URI): URI
  • write(fd: number, pos: number, data: Uint8Array, offset: number, length: number): Promise<number>
  • writeFile(resource: URI, content: Uint8Array, opts: FileWriteOptions): Promise<void>