@@ -158,8 +158,7 @@ if |a| and |b| are backed by the same file or directory on the local file system
158
158
<div algorithm>
159
159
160
160
To <dfn for="file system locator" id=locator-resolve>resolve</dfn> a
161
- [=/file system locator=] |child| relative to a [=directory locator=] |root|,
162
- run these steps:
161
+ [=/file system locator=] |child| relative to a [=directory locator=] |root|:
163
162
164
163
1. Let |result| be [=a new promise=] .
165
164
1. Run these steps [=in parallel=] :
@@ -231,8 +230,13 @@ these constraints:
231
230
<ul>
232
231
<li><p> If |locator| is a [=file locator=] , they return a [=file entry=] or null.
233
232
<li><p> If |locator| is a [=directory locator=] , they return a [=directory entry=] or null.
234
- <li><p> If these steps return |entry|, then [=getting the locator=] with |entry| returns |locator|,
235
- provided no intermediate file system operations were run.
233
+ <li><p> If these steps return |entry|, then:
234
+ <ul>
235
+ <li><p> [=Getting the locator=] with |entry| returns |locator|,
236
+ provided no intermediate file system operations were run.
237
+ <li><p> |entry|'s [=file system entry/name=] must be the same [=string=] as
238
+ the last [=list/item=] of |locator|'s [=file system locator/path=] .
239
+ </ul>
236
240
</ul>
237
241
</div>
238
242
@@ -244,8 +248,13 @@ constraints:
244
248
<ul>
245
249
<li><p> If |entry| is a [=file entry=] , they return a [=file locator=] .
246
250
<li><p> If |entry| is a [=directory entry=] , they return a [=directory locator=] .
247
- <li><p> If these steps return |locator|, then [=locating an entry=] with |locator| returns |entry|,
248
- provided no intermediate file system operations were run.
251
+ <li><p> If these steps return |locator|, then:
252
+ <ul>
253
+ <li><p> [=Locating an entry=] with |locator| returns |entry|,
254
+ provided no intermediate file system operations were run.
255
+ <li><p> |entry|'s [=file system entry/name=] must be the same [=string=] as
256
+ the last [=list/item=] of |locator|'s [=file system locator/path=] .
257
+ </ul>
249
258
</ul>
250
259
</div>
251
260
@@ -332,9 +341,8 @@ The <dfn attribute for=FileSystemHandle>kind</dfn> getter steps are to return
332
341
[=this=] 's [=FileSystemHandle/locator=]' s [=file system locator/kind=] .
333
342
334
343
The <dfn attribute for=FileSystemHandle>name</dfn> getter steps are to return
335
- the empty [=string=] if [=this=] is the root directory of the
336
- [=origin private file system=] ; otherwise the last [=list/item=] (a [=string=] )
337
- of [=this=] 's [=FileSystemHandle/locator=]' s [=file system locator/path=] .
344
+ the last [=list/item=] (a [=string=] ) of
345
+ [=this=] 's [=FileSystemHandle/locator=]' s [=file system locator/path=] .
338
346
339
347
### The {{FileSystemHandle/isSameEntry()}} method ### {#api-filesystemhandle-issameentry}
340
348
@@ -395,9 +403,10 @@ given a [=directory locator=] |parentLocator| and a string |name| in a [=/Realm=
395
403
</div>
396
404
397
405
<div algorithm>
398
- To <dfn export data-lt="creating a new FileSystemFileHandle">create a new <code>FileSystemFileHandle</code></dfn>
406
+ To
407
+ <dfn export data-lt="creating a new FileSystemFileHandle">create a new <code>FileSystemFileHandle</code></dfn>
399
408
given a [=/file system root=] |root| and a [=/file system path=] |path|
400
- in a [=/Realm=] |realm|, run these steps :
409
+ in a [=/Realm=] |realm|:
401
410
402
411
1. Let |handle| be a [=new=] {{FileSystemFileHandle}} in |realm|.
403
412
1. Set |handle|'s [=FileSystemHandle/locator=] to a [=/file system locator=] whose
@@ -615,9 +624,10 @@ given a [=directory locator=] |parentLocator| and a string |name| in a [=/Realm=
615
624
</div>
616
625
617
626
<div algorithm>
618
- To <dfn export data-lt="creating a new FileSystemDirectoryHandle">create a new <code>FileSystemDirectoryHandle</code></dfn>
627
+ To
628
+ <dfn export data-lt="creating a new FileSystemDirectoryHandle">create a new <code>FileSystemDirectoryHandle</code></dfn>
619
629
given a [=/file system root=] |root| and a [=/file system path=] |path|
620
- in a [=/Realm=] |realm|, run these steps :
630
+ in a [=/Realm=] |realm|:
621
631
622
632
1. Let |handle| be a [=new=] {{FileSystemDirectoryHandle}} in |realm|.
623
633
1. Set |handle|'s [=FileSystemHandle/locator=] to a [=/file system locator=] whose
@@ -1542,7 +1552,7 @@ The <dfn method for=StorageManager>getDirectory()</dfn> method steps are:
1542
1552
1. Set |map|["root"] to |dir|.
1543
1553
1544
1554
1. Let |root| be an [=implementation-defined=] opaque [=string=] .
1545
- 1. Let |path| be « ».
1555
+ 1. Let |path| be « the empty string ».
1546
1556
1. Let |handle| be the result of <a>creating a new <code>FileSystemDirectoryHandle</code></a> .
1547
1557
given |root| and |path| in the [=current realm=] .
1548
1558
0 commit comments