Skip to content

Commit fd187fa

Browse files
committed
update variable case
1 parent 2d0c838 commit fd187fa

File tree

1 file changed

+29
-29
lines changed

1 file changed

+29
-29
lines changed

index.bs

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,9 @@ interface FileSystemHandle {
189189
readonly attribute FileSystemHandleKind kind;
190190
readonly attribute USVString name;
191191

192-
Promise<undefined> move(USVString new_entry_name);
193-
Promise<undefined> move(FileSystemDirectoryHandle destination_directory);
194-
Promise<undefined> move(FileSystemDirectoryHandle destination_directory, USVString new_entry_name);
192+
Promise<undefined> move(USVString newEntryName);
193+
Promise<undefined> move(FileSystemDirectoryHandle destinationDirectory);
194+
Promise<undefined> move(FileSystemDirectoryHandle destinationDirectory, USVString newEntryName);
195195

196196
Promise<boolean> isSameEntry(FileSystemHandle other);
197197
};
@@ -239,22 +239,22 @@ The <dfn attribute for=FileSystemHandle>kind</dfn> getter steps are to return
239239

240240
The <dfn attribute for=FileSystemHandle>name</dfn> getter steps are to return [=this=]'s [=file system entry/name=].
241241

242-
### The {{FileSystemHandle/move(destination_directory, new_entry_name)|move()}} method ### {#api-filesystemhandle-move}
242+
### The {{FileSystemHandle/move(destinationDirectory, newEntryName)|move()}} method ### {#api-filesystemhandle-move}
243243

244244
<div class="note domintro">
245-
: await |handle| . {{FileSystemHandle/move(new_entry_name)|move}}({ {{USVString}}: |new_entry_name|})
245+
: await |handle| . {{FileSystemHandle/move(newEntryName)|move}}({ {{USVString}}: |newEntryName|})
246246
:: Attempts to rename the entry represented by |handle| to
247-
|new_entry_name| in the underlying file system.
247+
|newEntryName| in the underlying file system.
248248

249-
: await |handle| . {{FileSystemHandle/move(destination_directory)|move}}({ {{FileSystemDirectoryHandle}}: |destination_directory|})
250-
:: Attempts to move the entry represented by |handle| to |destination_directory|,
249+
: await |handle| . {{FileSystemHandle/move(destinationDirectory)|move}}({ {{FileSystemDirectoryHandle}}: |destinationDirectory|})
250+
:: Attempts to move the entry represented by |handle| to |destinationDirectory|,
251251
while keeping its existing name.
252252

253-
: await |handle| . {{FileSystemHandle/move(destination_directory, new_entry_name)|move}}({ {{FileSystemDirectoryHandle}}: |destination_directory|, {{USVString}}: |new_entry_name|})
254-
:: Attempts to move the entry represented by |handle| to |destination_directory|,
255-
as well as renaming to |new_entry_name|.
253+
: await |handle| . {{FileSystemHandle/move(destinationDirectory, newEntryName)|move}}({ {{FileSystemDirectoryHandle}}: |destinationDirectory|, {{USVString}}: |newEntryName|})
254+
:: Attempts to move the entry represented by |handle| to |destinationDirectory|,
255+
as well as renaming to |newEntryName|.
256256

257-
If |destination_directory| is not on the same underlying filesystem, this move
257+
If |destinationDirectory| is not on the same underlying filesystem, this move
258258
is not guaranteed to be atomic and will involve duplicating data.
259259

260260
For files or directories with multiple hardlinks or symlinks, the entry
@@ -267,7 +267,7 @@ The <dfn attribute for=FileSystemHandle>name</dfn> getter steps are to return [=
267267
</div>
268268

269269
<div algorithm>
270-
The <dfn method for=FileSystemHandle>move({{FileSystemDirectoryHandle}}: |destination_directory|, {{USVString}}: |new_entry_name|)</dfn>
270+
The <dfn method for=FileSystemHandle>move({{FileSystemDirectoryHandle}}: |destinationDirectory|, {{USVString}}: |newEntryName|)</dfn>
271271
method steps are:
272272

273273
1. Let |result| be [=a new promise=].
@@ -276,28 +276,28 @@ method steps are:
276276
1. If |entry| is the [=root directory of the origin private file system=]:
277277
1. [=/Reject=] |result| with an "{{NoModificationAllowedError}}" {{DOMException}}
278278
and abort.
279-
1. Let |new_name| be |new_entry_name| if specified, otherwise [=entry/name=].
280-
If |new_name| is invalid or deemed too dangerous, user agents should
279+
1. Let |newName| be |newEntryName| if specified, otherwise [=entry/name=].
280+
If |newName| is invalid or deemed too dangerous, user agents should
281281
sanitize it, similar to the sanitization done when fetching something
282282
<a spec=html>as a download</a>, or [=/reject=] |result| with a
283283
{{TypeError}} and abort.
284-
1. Let |new_directory| be |destination_directory| if specified, otherwise [=entry/parent=].
285-
If |new_directory| does not exist, [=/reject=] |result| with a
284+
1. Let |newDirectory| be |destinationDirectory| if specified, otherwise [=entry/parent=].
285+
If |newDirectory| does not exist, [=/reject=] |result| with a
286286
"{{NotFoundError}}" {{DOMException}} and abort.
287-
1. Let |destination_entry| be an [=/entry=] in |new_directory|'s [=directory entry/children=].
288-
1. Set |destination_entry|'s [=entry/name=] to |new_name|.
289-
1. If |entry| is [=the same as=] |destination_entry|,
287+
1. Let |destinationEntry| be an [=/entry=] in |newDirectory|'s [=directory entry/children=].
288+
1. Set |destinationEntry|'s [=entry/name=] to |newName|.
289+
1. If |entry| is [=the same as=] |destinationEntry|,
290290
[=/resolve=] |result| with `undefined`.
291-
1. If |destination_entry| exists in the underlying file system:
291+
1. If |destinationEntry| exists in the underlying file system:
292292
1. [=/Reject=] |result| with an "{{InvalidModificationError}}" {{DOMException}}
293293
and abort.
294294

295295
1. Let |accessSource| be the result of running |entry|'s
296296
[=entry/request access=] given "`readwrite`".
297297
1. If |accessSource| is not "{{PermissionState/granted}}", reject |result| with a
298298
"{{NotAllowedError}}" {{DOMException}} and abort.
299-
1. If |new_directory| is not [=entry/parent=]:
300-
1. Let |accessDest| be the result of running |new_directory|'s
299+
1. If |newDirectory| is not [=entry/parent=]:
300+
1. Let |accessDest| be the result of running |newDirectory|'s
301301
[=entry/request access=] given "`readwrite`".
302302
1. If |accessDest| is not "{{PermissionState/granted}}", reject |result| with a
303303
"{{NotAllowedError}}" {{DOMException}} and abort.
@@ -307,33 +307,33 @@ method steps are:
307307
1. If |lockResultSource| is false, [=reject=] |result| with a
308308
"{{NoModificationAllowedError}}" {{DOMException}} and abort.
309309
1. Let |lockResultDestination| be the result of [=file entry/lock/take|taking a lock=]
310-
with "`exclusive`" on |destination_entry|.
310+
with "`exclusive`" on |destinationEntry|.
311311
1. If |lockResultDestination| is false, [=reject=] |result| with a
312312
"{{NoModificationAllowedError}}" {{DOMException}} and abort.
313313

314-
1. If |new_directory| does not exist in the underlying file system:
314+
1. If |newDirectory| does not exist in the underlying file system:
315315
1. [=/Reject=] |result| with a "{{NotFoundError}}" {{DOMException}} and abort.
316316
1. If |entry| does not exist in the underlying file system:
317317
1. [=/Reject=] |result| with a "{{NotFoundError}}" {{DOMException}} and abort.
318318
1. If |entry| is a [=directory entry=]:
319-
1. If |entry| is in the Origin Private File System and |destination_entry| is not:
319+
1. If |entry| is in the Origin Private File System and |destinationEntry| is not:
320320
1. [=set/For each=] of |entry|'s [=directory entry/children=]:
321321
1. Run [=implementation-defined=] malware scans and safe browsing checks.
322322
If these checks fail, [=/reject=] |result| with an
323323
"{{AbortError}}" {{DOMException}} and abort.
324324
1. If |entry| is a [=file entry=]:
325-
1. If |destination_entry| is not in the Origin Private File System:
325+
1. If |destinationEntry| is not in the Origin Private File System:
326326
1. Run [=implementation-defined=] malware scans and safe browsing checks.
327327
If these checks fail, [=/reject=] |result| with an
328328
"{{AbortError}}" {{DOMException}} and abort.
329329

330-
1. Attempt to move |entry| to |destination_entry| in the underlying file system.
330+
1. Attempt to move |entry| to |destinationEntry| in the underlying file system.
331331
1. If the underlying move operation throws an exception, [=/reject=]
332332
|result| with that exception and abort.
333333

334334
Issue(68): Better specify what possible exceptions this could throw.
335335

336-
1. Set |entry|'s [=entry/name=] to |new_name|.
336+
1. Set |entry|'s [=entry/name=] to |newName|.
337337

338338
1. [=/Resolve=] |result| with `undefined`.
339339

0 commit comments

Comments
 (0)