FileSystemHandle::move() method
- Category
- File APIs
- Type
- No developer-visible change
- Status
- In development (Chrome In development)
- Intent stage
- Start prototyping
WPT details: File moves: https://wpt.fyi/results/fs?label=master&label=experimental&aligned&view=subtest&q=filesystemfilehandle-move Directory moves: https://wpt.fyi/results/file-system-access?label=master&label=experimental&aligned&view=subtest&q=filesystemdirectoryhandle-move
Summary
Currently, the File System Access API does not support an efficient way to move or rename files or directories. This requires creating a new file/directory, copying over data (recursively, in the case of a directory), and removing the original. This process is slow, error prone (e.g. disk full), and can require re-uploading files in some cases. See https://github.com/WICG/file-system-access/pull/317
Standards & signals
- Specification: https://github.com/WICG/file-system-access/pull/317
- Firefox: No signal
- Safari: No signal
- Web developers: Strongly positive
Ecosystem
- Web Platform Tests: https://wpt.fyi/results/?q=filesystemfilehandle-move
- Chrome Platform Showcase: https://chrome-platform-showcase.paulkinlan-ea.deno.net/features
- GenDN reference: https://gendn.paulkinlan-ea.deno.net/features
- chrome.dev demos search: https://www.google.com/search?q=site%3Achrome.dev+FileSystemHandle%3A%3Amove()%20method
- MDN Web Docs: https://developer.mozilla.org/en-US/search?q=FileSystemHandle%3A%3Amove()%20method
- Baseline status: https://webstatus.dev/?q=FileSystemHandle%3A%3Amove()%20method