Skip to content

Commit 359fc4c

Browse files
author
Nathan Memmott
committed
Support locking of directory entries
Moves the locking algorithm from file entry to file system entry. Fixes whatwg#137
1 parent e27a935 commit 359fc4c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

index.bs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ The <dfn method for=FileSystemFileHandle>getFile()</dfn> method steps are:
559559
the temporary file starts out empty,
560560
otherwise the existing file is first copied to this temporary file.
561561

562-
Creating a {{FileSystemWritableFileStream}} [=file system entry/lock/take a lock|takes a shared lock=] on the
562+
Creating a {{FileSystemWritableFileStream}} [=file system entry/take a lock|takes a shared lock=] on the
563563
[=file entry=] [=locate an entry|locatable=] with |fileHandle|'s [=FileSystemHandle/locator=].
564564
This prevents the creation of {{FileSystemSyncAccessHandle|FileSystemSyncAccessHandles}}
565565
for the entry, until the stream is closed.
@@ -596,7 +596,7 @@ The <dfn method for=FileSystemFileHandle>createWritable(|options|)</dfn> method
596596
|result| with a "{{NotFoundError}}" {{DOMException}} and abort these steps.
597597
1. [=Assert=]: |entry| is a [=file entry=].
598598

599-
1. Let |lockResult| be the result of [=file system entry/lock/take a lock|taking a lock=]
599+
1. Let |lockResult| be the result of [=file system entry/take a lock|taking a lock=]
600600
with "`shared`" on |entry|.
601601

602602
1. [=Queue a storage task=] with |global| to run these steps:
@@ -624,7 +624,7 @@ The <dfn method for=FileSystemFileHandle>createWritable(|options|)</dfn> method
624624
[=file entry=] [=locate an entry|locatable=] by |fileHandle|'s [=FileSystemHandle/locator=].
625625
To ensure the changes are reflected in this file, the handle can be flushed.
626626

627-
Creating a {{FileSystemSyncAccessHandle}} [=file system entry/lock/take a lock|takes an exclusive lock=] on the
627+
Creating a {{FileSystemSyncAccessHandle}} [=file system entry/take a lock|takes an exclusive lock=] on the
628628
[=file entry=] [=locate an entry|locatable=] with |fileHandle|'s [=FileSystemHandle/locator=].
629629
This prevents the creation of further {{FileSystemSyncAccessHandle|FileSystemSyncAccessHandles}}
630630
or {{FileSystemWritableFileStream|FileSystemWritableFileStreams}}
@@ -666,7 +666,7 @@ The <dfn method for=FileSystemFileHandle>createSyncAccessHandle()</dfn> method s
666666
|result| with a "{{NotFoundError}}" {{DOMException}} and abort these steps.
667667
1. [=Assert=]: |entry| is a [=file entry=].
668668

669-
1. Let |lockResult| be the result of [=file system entry/lock/take a lock|taking a lock=]
669+
1. Let |lockResult| be the result of [=file system entry/take a lock|taking a lock=]
670670
with "`exclusive`" on |entry|.
671671

672672
1. [=Queue a storage task=] with |global| to run these steps:

0 commit comments

Comments
 (0)