document.requestStorageAccess({ getDirectory: true }).then(
async (handle) => {
console.log("getDirectory access granted");
await handle.getDirectory();
},
() => {
console.log("getDirectory access denied");
},
);StorageAccessHandle: getDirectory() method / notebook
StorageAccessHandle: getDirectory() method
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.