W3cubDocs

/Dart 2

requestFileSystem method

Future<FileSystem> requestFileSystem (int size, { bool persistent: false })

Access a sandboxed file system of size bytes.

If persistent is true, the application will request permission from the user to create lasting storage. This storage cannot be freed without the user's permission. Returns a Future whose value stores a reference to the sandboxed file system for use. Because the file system is sandboxed, applications cannot access file systems created in other web pages.

Implementation

Future<FileSystem> requestFileSystem(int size, {bool persistent: false}) {
  return _requestFileSystem(persistent ? 1 : 0, size);
}

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/2.0.0/dart-html/Window/requestFileSystem.html