happy-opfs • Docs
happy-opfs / move
function move(
srcPath,
destPath,
options?): AsyncVoidIOResult
Move a file or directory from an old path to a new path.
Parameter | Type | Description |
---|---|---|
srcPath |
string |
The current path of the file or directory. |
destPath |
string |
The new path of the file or directory. |
options ? |
MoveOptions |
Options of move. |
AsyncVoidIOResult
A promise that resolves to an AsyncIOResult
indicating whether the file or directory was successfully moved.