Created
March 27, 2021 21:11
-
-
Save RangerMauve/10da5c6d78aef9cdd9b4057870d0211a to your computer and use it in GitHub Desktop.
Test opening a write stream for the FileSystem API
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Execute this in Chrome Dev Tools on an HTTPs web page | |
// Choose a file on your FS | |
[fileHandle] = await window.showOpenFilePicker(); | |
// This will throw an error on Electron 12 | |
writable = await fileHandle.createWritable(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment