diff --git a/index.bs b/index.bs index fdb1125..f0ef890 100644 --- a/index.bs +++ b/index.bs @@ -158,8 +158,7 @@ if |a| and |b| are backed by the same file or directory on the local file system
If |locator| is a [=file locator=], they return a [=file entry=] or null.
If |locator| is a [=directory locator=], they return a [=directory entry=] or null. -
If these steps return |entry|, then [=getting the locator=] with |entry| returns |locator|, - provided no intermediate file system operations were run. +
If these steps return |entry|, then: +
[=Getting the locator=] with |entry| returns |locator|, + provided no intermediate file system operations were run. +
|entry|'s [=file system entry/name=] must be the same [=string=] as + the last [=list/item=] of |locator|'s [=file system locator/path=]. +
If |entry| is a [=file entry=], they return a [=file locator=].
If |entry| is a [=directory entry=], they return a [=directory locator=]. -
If these steps return |locator|, then [=locating an entry=] with |locator| returns |entry|, - provided no intermediate file system operations were run. +
If these steps return |locator|, then: +
[=Locating an entry=] with |locator| returns |entry|, + provided no intermediate file system operations were run. +
|entry|'s [=file system entry/name=] must be the same [=string=] as + the last [=list/item=] of |locator|'s [=file system locator/path=]. +
FileSystemFileHandle
+To
+create a new FileSystemFileHandle
given a [=/file system root=] |root| and a [=/file system path=] |path|
-in a [=/Realm=] |realm|, run these steps:
+in a [=/Realm=] |realm|:
1. Let |handle| be a [=new=] {{FileSystemFileHandle}} in |realm|.
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=
FileSystemDirectoryHandle
+To
+create a new FileSystemDirectoryHandle
given a [=/file system root=] |root| and a [=/file system path=] |path|
-in a [=/Realm=] |realm|, run these steps:
+in a [=/Realm=] |realm|:
1. Let |handle| be a [=new=] {{FileSystemDirectoryHandle}} in |realm|.
1. Set |handle|'s [=FileSystemHandle/locator=] to a [=/file system locator=] whose
@@ -1542,7 +1552,7 @@ The getDirectory() method steps are:
1. Set |map|["root"] to |dir|.
1. Let |root| be an [=implementation-defined=] opaque [=string=].
-1. Let |path| be « ».
+1. Let |path| be « the empty string ».
1. Let |handle| be the result of creating a new FileSystemDirectoryHandle
.
given |root| and |path| in the [=current realm=].