features
Documentation / @wtf/platform-fs / features
The guards of what the File System Standard has a handle do that a browser’s may not: each tells
by what the handle has, and reads nothing else, so a caller checks before it calls. A browser’s
handle moves itself, and in a worker opens a file of the origin’s folder synchronously; the
handles of @wtf/platform-fs-adapter, @wtf/platform-fs-node and @wtf/platform-fs-memory do
each.
if (canMove(file)) await file.move('renamed.txt')