Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.
The createWritable()
method of the FileSystemFileHandle
interface creates a FileSystemWritableFileStream
that can be used to write to a file. The method returns a Promise
which resolves to this created stream.
Any changes made through the stream won't be reflected in the file represented by the file handle until the stream has been closed. This is typically implemented by writing data to a temporary file, and only replacing the file represented by file handle with the temporary file when the writable filestream is closed.