FileSystem class

The file system interface exposes the editor's built-in and contributed {@link FileSystemProviderfile system providers}. It allows extensions to work with files from the local disk as well as files from remote places, like the remote extension host or ftp-servers.

Note that an instance of this interface is available as {@linkcode workspace.fs}.

Available Extensions
Annotations
  • @JS()
  • @staticInterop
  • @anonymous

Constructors

FileSystem({Future stat(Uri)?, Future readDirectory(Uri)?, Future createDirectory(Uri)?, Future readFile(Uri)?, Future writeFile(Uri, Uint8List)?, Future delete(Uri, [dynamic])?, Future rename(Uri, Uri, [dynamic])?, Future copy(Uri, Uri, [dynamic])?, bool? isWritableFileSystem(String)?})
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