FileSystemProvider class

The filesystem provider defines what the editor needs to read, write, discover, and to manage files and folders. It allows extensions to serve files from remote places, like ftp-servers, and to seamlessly integrate those into the editor.

  • Note 1: The filesystem provider API works with {@link Uriuris} and assumes hierarchical paths, e.g. foo:/my/path is a child of foo:/my/ and a parent of foo:/my/path/deeper.
  • Note 2: There is an activation event onFileSystem:<scheme> that fires when a file or folder is being accessed.
  • Note 3: The word 'file' is often used to denote all {@link FileTypekinds} of files, e.g. folders, symbolic links, and regular files.
Available extensions
Annotations
  • @JS()
  • @staticInterop
  • @anonymous

Constructors

FileSystemProvider({Event<List<FileChangeEvent>>? onDidChangeFile, Disposable watch(Uri, dynamic)?, Object stat(Uri)?, FutureOr<List<(String, FileType)>> readDirectory(Uri)?, FutureOr<void> createDirectory(Uri)?, FutureOr<Uint8List> readFile(Uri)?, FutureOr<void> writeFile(Uri, Uint8List, dynamic)?, FutureOr<void> delete(Uri, dynamic)?, FutureOr<void> rename(Uri, Uri, dynamic)?, FutureOr<void> copy(Uri, Uri, dynamic)?})
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited