Subtype of FileSystemProvider that ensures that the optional functions, needed for providers that should be able to read & write files, are implemented.

Implements

Constructors

Properties

capabilities: FileSystemProviderCapabilities = FileSystemProviderCapabilities.FileReadWrite

The FileSystemProviderCapabilities for this provider.

directoryHandle: FileSystemDirectoryHandle
initialization: OPFSInitialization
initialized: Promise<true>
onDidChangeCapabilities: Event<void> = Event.None
  • Event that is fired if the capabilities of this provider have changed.
onDidChangeFile: Event<readonly FileChange[]> = ...

Event that is fired if a (watched) file in the filesystem of this provider has changed.

onDidChangeFileEmitter: Emitter<readonly FileChange[]> = ...
onFileWatchError: Event<void> = Event.None

Event that is fired if an error occurred when watching files in the filesystem of this provider.

Methods

  • Returns the FileSystemHandle for the given resource given by a URI.

    Parameters

    • resource: URI

      URI/path of the resource

    • Optional options: CreateFileSystemHandleOptions

      Options for the creation of the handle while traversing the path

    Returns Promise<FileSystemHandle>

    FileSystemHandle for the given resource