|
|
|
|
|
by justusthane
4 hours ago
|
|
No, they're very different. Using webkitdirectory="true" on an <input> element just allows you to select a directory to e.g. upload it to the server. It's a one-time operation. This API returns a handle to the selected directory, giving the webpage ongoing read/write access to the directory. You couldn't use the former to e.g. create a local-first notes app that stores its files on disk. |
|