Skip to content

Commit 2e2be29

Browse files
committed
feat(filesystem): document write flags precise meaning
1 parent 5b0aa51 commit 2e2be29

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

proposals/filesystem/wit/types.wit

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ interface types {
6666
/// Read mode: Data can be read.
6767
read,
6868
/// Write mode: Data can be written to.
69+
///
70+
/// Governs file contents only; independent of `mutate-directory`.
6971
write,
7072
/// Request that writes be performed according to synchronized I/O file
7173
/// integrity completion. The data stored in the file and the file's
@@ -92,6 +94,9 @@ interface types {
9294
requested-write-sync,
9395
/// Mutating directories mode: Directory contents may be mutated.
9496
///
97+
/// Governs directory structure (create, rename, delete entries); independent
98+
/// of `write`, which governs file contents.
99+
///
95100
/// When this flag is unset on a descriptor, operations using the
96101
/// descriptor which would create, rename, delete, modify the data or
97102
/// metadata of filesystem objects, or obtain another handle which

0 commit comments

Comments
 (0)