A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.cdn.mozilla.net/en-US/docs/Web/API/StorageAccessHandle/getDirectory below:

StorageAccessHandle: getDirectory() method - Web APIs

StorageAccessHandle: getDirectory() method

Limited availability

Note: See StorageManager.getDirectory() to understand usage.

Syntax Parameters

None.

Return value

A Promise that fulfills with an unpartitioned FileSystemDirectoryHandle object.

Exceptions
SecurityError DomException

Thrown if access was not granted.

See StorageManager.getDirectory()

Examples
document.requestStorageAccess({ getDirectory: true }).then(
  (handle) => {
    console.log("getDirectory access granted");
    await handle.getDirectory();
  },
  () => {
    console.log("getDirectory access denied");
  },
);

Note: See Using the Storage Access API for a more complete example.

Specifications Browser compatibility See also

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4