[Workers] Fix typo (getDirctory → getDirectory) (#27336)

This commit is contained in:
Stephan de Vries 2026-01-05 11:51:09 +01:00 committed by GitHub
parent 5e4e4731b5
commit 08f3797385
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -184,7 +184,7 @@ navigator.sendBeacon("https://example.com", "hello world");
When the `enable_web_file_system` compatibility flag is set, Workers supports the [Web File System Access API](https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API), which allows you to read and write files and directories to a virtual file system within the Worker environment. This API provides access to the same in-memory virtual file system as the [`node:fs` module](/workers/runtime-apis/nodejs/fs/) but does not require Node.js compatibility to be enabled.
```js
const root = await navigator.storage.getDirctory();
const root = await navigator.storage.getDirectory();
export default {
async fetch(request) {