@@ -244,7 +244,7 @@ associated [=FileSystemHandle/entry=].
244
244
</div>
245
245
246
246
<div algorithm>
247
- The <dfn method for=FileSystemHandle>isSameEntry(|other|)</dfn> method, when invoked, must run these steps:
247
+ The <dfn method for=FileSystemHandle>isSameEntry(|other|)</dfn> method steps are :
248
248
249
249
1. Let |realm| be [=this=] 's [=relevant Realm=] .
250
250
1. Let |p| be [=a new promise=] in |realm|.
@@ -287,7 +287,7 @@ A {{FileSystemFileHandle}}'s associated [=FileSystemHandle/entry=] must be a [=f
287
287
</div>
288
288
289
289
<div algorithm>
290
- The <dfn method for=FileSystemFileHandle>getFile()</dfn> method, when invoked, must run these steps:
290
+ The <dfn method for=FileSystemFileHandle>getFile()</dfn> method steps are :
291
291
292
292
1. Let |result| be [=a new promise=] .
293
293
1. Run the following steps [=in parallel=] :
@@ -341,7 +341,7 @@ combine the desire to run malware checks with the desire to let websites make fa
341
341
modifications to existing large files.
342
342
343
343
<div algorithm>
344
- The <dfn method for=FileSystemFileHandle>createWritable(|options|)</dfn> method, when invoked, must run these steps:
344
+ The <dfn method for=FileSystemFileHandle>createWritable(|options|)</dfn> method steps are :
345
345
346
346
1. Let |result| be [=a new promise=] .
347
347
1. Run the following steps [=in parallel=] :
@@ -383,7 +383,7 @@ The <dfn method for=FileSystemFileHandle>createWritable(|options|)</dfn> method,
383
383
</div>
384
384
385
385
<div algorithm>
386
- The <dfn method for=FileSystemFileHandle>createSyncAccessHandle()</dfn> method, when invoked, must run these steps:
386
+ The <dfn method for=FileSystemFileHandle>createSyncAccessHandle()</dfn> method steps are :
387
387
388
388
1. Let |result| be [=a new promise=] .
389
389
1. Run the following steps [=in parallel=] :
@@ -526,8 +526,7 @@ and its async iterator |iterator|:
526
526
</div>
527
527
528
528
<div algorithm>
529
- The <dfn method for=FileSystemDirectoryHandle>getFileHandle(|name|, |options|)</dfn> method, when invoked,
530
- must run these steps:
529
+ The <dfn method for=FileSystemDirectoryHandle>getFileHandle(|name|, |options|)</dfn> method steps are:
531
530
532
531
1. Let |result| be [=a new promise=] .
533
532
1. Run the following steps [=in parallel=] :
@@ -588,8 +587,7 @@ must run these steps:
588
587
</div>
589
588
590
589
<div algorithm>
591
- The <dfn method for=FileSystemDirectoryHandle>getDirectoryHandle(|name|, |options|)</dfn> method, when
592
- invoked, must run these steps:
590
+ The <dfn method for=FileSystemDirectoryHandle>getDirectoryHandle(|name|, |options|)</dfn> method steps are:
593
591
594
592
1. Let |result| be [=a new promise=] .
595
593
1. Run the following steps [=in parallel=] :
@@ -647,8 +645,7 @@ invoked, must run these steps:
647
645
</div>
648
646
649
647
<div algorithm>
650
- The <dfn method for=FileSystemDirectoryHandle>removeEntry(|name|, |options|)</dfn> method, when invoked, must run
651
- these steps:
648
+ The <dfn method for=FileSystemDirectoryHandle>removeEntry(|name|, |options|)</dfn> method steps are:
652
649
653
650
1. Let |result| be [=a new promise=] .
654
651
1. Run the following steps [=in parallel=] :
@@ -727,14 +724,12 @@ if (relative_path === null) {
727
724
</div>
728
725
729
726
<div algorithm>
730
- The <dfn method for=FileSystemDirectoryHandle>resolve(|possibleDescendant|)</dfn> method,
731
- when invoked, must return the result of [=entry/resolving=]
732
- |possibleDescendant| 's [=FileSystemHandle/entry=] relative to [=this=]' s [=FileSystemHandle/entry=] .
727
+ The <dfn method for=FileSystemDirectoryHandle>resolve(|possibleDescendant|)</dfn> method steps are
728
+ to return the result of [=entry/resolving=] |possibleDescendant|'s [=FileSystemHandle/entry =]
729
+ relative to [=this=] 's [=FileSystemHandle/entry=] .
733
730
734
731
</div>
735
732
736
-
737
-
738
733
## The {{FileSystemWritableFileStream}} interface ## {#api-filesystemwritablefilestream}
739
734
740
735
<xmp class=idl>
@@ -960,8 +955,7 @@ runs these steps:
960
955
</div>
961
956
962
957
<div algorithm>
963
- The <dfn method for=FileSystemWritableFileStream>write(|data|)</dfn> method, when invoked, must run
964
- these steps:
958
+ The <dfn method for=FileSystemWritableFileStream>write(|data|)</dfn> method steps are:
965
959
966
960
1. Let |writer| be the result of [=WritableStream/getting a writer=] for [=this=] .
967
961
1. Let |result| be the result of [=WritableStreamDefaultWriter/writing a chunk=] to |writer| given
@@ -979,8 +973,7 @@ these steps:
979
973
</div>
980
974
981
975
<div algorithm>
982
- The <dfn method for=FileSystemWritableFileStream>seek(|position|)</dfn> method, when invoked, must run these
983
- steps:
976
+ The <dfn method for=FileSystemWritableFileStream>seek(|position|)</dfn> method steps are:
984
977
985
978
1. Let |writer| be the result of [=WritableStream/getting a writer=] for [=this=] .
986
979
1. Let |result| be the result of [=WritableStreamDefaultWriter/writing a chunk=] to |writer| given
@@ -1007,8 +1000,7 @@ steps:
1007
1000
</div>
1008
1001
1009
1002
<div algorithm>
1010
- The <dfn method for=FileSystemWritableFileStream>truncate(|size|)</dfn> method, when invoked, must run these
1011
- steps:
1003
+ The <dfn method for=FileSystemWritableFileStream>truncate(|size|)</dfn> method steps are:
1012
1004
1013
1005
1. Let |writer| be the result of [=WritableStream/getting a writer=] for [=this=] .
1014
1006
1. Let |result| be the result of [=WritableStreamDefaultWriter/writing a chunk=] to |writer| given
@@ -1075,8 +1067,7 @@ in a [=/Realm=] |realm|, perform the following steps:
1075
1067
1076
1068
// TODO(fivedots): Specify how Access Handles should react when reading from a file that has been modified externally.
1077
1069
<div algorithm>
1078
- The <dfn method for=FileSystemSyncAccessHandle>read(|buffer|, {{FileSystemReadWriteOptions}}: |options|)</dfn> method, when invoked, must run
1079
- these steps:
1070
+ The <dfn method for=FileSystemSyncAccessHandle>read(|buffer|, {{FileSystemReadWriteOptions}}: |options|)</dfn> method steps are:
1080
1071
1081
1072
1. If [=this=] .[=[[state]]=] is "`closed`", throw an {{InvalidStateError}} .
1082
1073
1. Let |bufferSize| be |buffer|'s [=byte length=] .
@@ -1109,8 +1100,7 @@ these steps:
1109
1100
1110
1101
// TODO(fivedots): Figure out how to properly check the available storage quota (in this method and others) by passing the right storage shelf.
1111
1102
<div algorithm>
1112
- The <dfn method for=FileSystemSyncAccessHandle>write(|buffer|, {{FileSystemReadWriteOptions}}: |options|)</dfn> method, when invoked, must run
1113
- these steps:
1103
+ The <dfn method for=FileSystemSyncAccessHandle>write(|buffer|, {{FileSystemReadWriteOptions}}: |options|)</dfn> method steps are:
1114
1104
1115
1105
1. If [=this=] .[=[[state]]=] is "`closed`", throw an {{InvalidStateError}} .
1116
1106
1. Let |writePosition| be |options|.{{FileSystemReadWriteOptions/at}} .
@@ -1156,8 +1146,7 @@ these steps:
1156
1146
</div>
1157
1147
1158
1148
<div algorithm>
1159
- The <dfn method for=FileSystemSyncAccessHandle>truncate(|newSize|)</dfn> method, when invoked, must run
1160
- these steps:
1149
+ The <dfn method for=FileSystemSyncAccessHandle>truncate(|newSize|)</dfn> method steps are:
1161
1150
1162
1151
1. If [=this=] .[=[[state]]=] is "`closed`", throw an {{InvalidStateError}} .
1163
1152
1. Let |fileContents| be a copy of [=this=] .[=FileSystemSyncAccessHandle/[[file]]=] 's [=file entry/binary data=] .
@@ -1185,8 +1174,7 @@ these steps:
1185
1174
</div>
1186
1175
1187
1176
<div algorithm>
1188
- The <dfn method for=FileSystemSyncAccessHandle>getSize()</dfn> method, when invoked, must run
1189
- these steps:
1177
+ The <dfn method for=FileSystemSyncAccessHandle>getSize()</dfn> method steps are:
1190
1178
1191
1179
1. If [=this=] .[=[[state]]=] is "`closed`", throw an {{InvalidStateError}} .
1192
1180
1. Return [=this=] .[=FileSystemSyncAccessHandle/[[file]]=] 's [=file entry/binary data=]' s [=byte sequence/length=] .
@@ -1202,8 +1190,7 @@ these steps:
1202
1190
</div>
1203
1191
1204
1192
<div algorithm>
1205
- The <dfn method for=FileSystemSyncAccessHandle>flush()</dfn> method, when invoked, must run
1206
- these steps:
1193
+ The <dfn method for=FileSystemSyncAccessHandle>flush()</dfn> method steps are:
1207
1194
1208
1195
// TODO(fivedots): Fill in, after figuring out language to describe flushing at the OS level.
1209
1196
@@ -1219,10 +1206,8 @@ these steps:
1219
1206
1220
1207
//TODO(fivedots): Figure out language to describe flushing the file at the OS level before closing the handle.
1221
1208
<div algorithm>
1222
- The <dfn method for=FileSystemSyncAccessHandle>close()</dfn> method, when invoked, must run
1223
- these steps:
1224
-
1225
- 1. Set [=this=] .[=[[state]]=] to "`closed`".
1209
+ The <dfn method for=FileSystemSyncAccessHandle>close()</dfn> method steps are
1210
+ to set [=this=] .[=[[state]]=] to "`closed`".
1226
1211
1227
1212
</div>
1228
1213
@@ -1255,8 +1240,7 @@ partial interface StorageManager {
1255
1240
</div>
1256
1241
1257
1242
<div algorithm>
1258
- The <dfn method for=StorageManager>getDirectory()</dfn> method, when
1259
- invoked, must run these steps:
1243
+ The <dfn method for=StorageManager>getDirectory()</dfn> method steps are:
1260
1244
1261
1245
1. Let |environment| be the [=current settings object=] .
1262
1246
0 commit comments