Bug 1792692 Comment 0 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

In the current version of the FileSystemHandle::move specification, leaving the target name empty is not an error but equivalent to not renaming the file system entry whenever the new parent folder is specified, see the discussion at the spefication pipeline https://github.com/whatwg/fs/pull/10

This feature is tested by tests in testing/web-platform/tests/file-system-access/sandboxed_FileSystemDirectoryHandle-move.https.any.js
In the web platform tests for OPFS directory handle moves, leaving the target name empty is not an error but equivalent to keeping the original name of the file system entry whenever the destination folder is specified. According to the discussion at the spefication pipeline https://github.com/whatwg/fs/pull/10 , all parties agree that throwing an error is preferred. In this bug, we change the tests to reflect this behavior.

This feature is tested by tests in testing/web-platform/tests/file-system-access/sandboxed_FileSystemDirectoryHandle-move.https.any.js

Back to Bug 1792692 Comment 0