mount method

Future<void> mount(
  1. MountOptions options
)

Mounts a file system with the given fileSystemId and displayName. displayName will be shown in the left panel of the Files app. displayName can contain any characters including '/', but cannot be an empty string. displayName must be descriptive but doesn't have to be unique. The fileSystemId must not be an empty string.

Depending on the type of the file system being mounted, the source option must be set appropriately.

In case of an error, runtime.lastError will be set with a corresponding error code.

Implementation

Future<void> mount(MountOptions options) async {
  await promiseToFuture<void>(
      $js.chrome.fileSystemProvider.mount(options.toJS));
}