diff --git a/index.bs b/index.bs index eee7980..71c017d 100644 --- a/index.bs +++ b/index.bs @@ -223,32 +223,31 @@ a [=/file system locator=] |b| if |a|'s [=file system locator/root=] is |b|'s [=file system locator/root=], and |a|'s [=file system locator/path=] is [=the same path as=] |b|'s [=file system locator/path=]. -The locate an entry algorithm takes a -[=/file system locator=] |locator| and returns either a [=/file system entry=] or null. -If |locator| is a [=file locator=], this method must return either a [=file entry=] or null. -If |locator| is a [=directory locator=], this method must return either a [=directory entry=] or null. -The steps of this algorithm are [=implementation-defined=]. - -The get the locator algorithm takes a -[=/file system entry=] |entry| and returns a [=/file system locator=] |locator|. - -If |entry| is a [=file entry=], |locator| must be a [=file locator=]. -If |entry| is a [=directory entry=], |locator| must be a [=directory locator=]. -If [=locating an entry=] given [=/file system locator=] |locator| returns a -[=/file system entry=] |entry|, then [=getting the locator=] of |entry| -must return |locator| if no intermediate file system operations were run. -Typically the steps are symmetric to the [=locate an entry=] algorithm. - -If |entry| is the root directory of the [=origin private file system=], then -|entry|'s [=file system entry/name=] must be the empty string and -[=getting the locator=] of |entry| must return a [=/file system locator=] -whose [=file system locator/path=] is [=list/empty=]. - -If [=locating an entry=] given [=/file system locator=] |locator| returns a -[=/file system entry=] |entry| that is not the root directory of the -[=origin private file system=], then |entry|'s [=file system entry/name=] must -be the same [=string=] as the last [=list/item=] of -|locator|'s [=file system locator/path=]. +
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 |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. +
FileSystemFileHandle
-given a [=directory locator=] |parentLocator| and a [=file system entry/name=] |name|
-in a [=/Realm=] |realm|, run these steps:
+To
+create a child FileSystemFileHandle
+given a [=directory locator=] |parentLocator| and a string |name| in a [=/Realm=] |realm|:
1. Let |handle| be a [=new=] {{FileSystemFileHandle}} in |realm|.
1. Let |childType| be {{FileSystemHandleKind/"file"}}.
@@ -598,9 +597,9 @@ Note: A {{FileSystemDirectoryHandle}}'s associated [=FileSystemHandle/locator=]'
[=file system locator/kind=] is {{FileSystemHandleKind/"directory"}}.
FileSystemDirectoryHandle
-given a [=directory locator=] |parentLocator| and a [=file system entry/name=] |name|
-in a [=/Realm=] |realm|, run these steps:
+To
+create a child FileSystemDirectoryHandle
+given a [=directory locator=] |parentLocator| and a string |name| in a [=/Realm=] |realm|:
1. Let |handle| be a [=new=] {{FileSystemDirectoryHandle}} in |realm|.
1. Let |childType| be {{FileSystemHandleKind/"directory"}}.