FileSystemCreateWritableOptions Class

The options of FileSystemFileHandle.CreateWritable (https://fs.spec.whatwg.org/#dictdef-filesystemcreatewritableoptions).

public sealed class FileSystemCreateWritableOptions

Constructors

NameDescription
FileSystemCreateWritableOptions()

FileSystemCreateWritableOptions()

FileSystemFileHandle.cs
public FileSystemCreateWritableOptions()

No documentation is available.

Properties

NameDescription
KeepExistingDataGets whether the stream starts with the content of the file (it starts empty by default).
ModeGets the locking mode of the stream, a member that Chromium implements and that is not in the File System Standard yet: siloed (the default, the shared lock of the specification: several streams can write the file, and the last one that is closed wins) or exclusive (no other stream can be created).

KeepExistingData

FileSystemFileHandle.cs

Gets whether the stream starts with the content of the file (it starts empty by default).

public bool KeepExistingData { get; init; }
  • Experimental (WEBPLATEXP0007)

Gets the locking mode of the stream, a member that Chromium implements and that is not in the File System Standard yet: siloed (the default, the shared lock of the specification: several streams can write the file, and the last one that is closed wins) or exclusive (no other stream can be created).

[Experimental("WEBPLATEXP0007", UrlFormat = "https://github.com/meziantou/Meziantou.Framework/blob/main/src/Meziantou.Framework.WebPlatform/docs/experimental-apis.md#{0}")]
public string Mode { get; init; }

Property value

string