Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 839 Bytes

move.md

File metadata and controls

34 lines (22 loc) · 839 Bytes

happy-opfsDocs


happy-opfs / move

Function: move()

function move(
   srcPath, 
   destPath, 
   options?): AsyncVoidIOResult

Move a file or directory from an old path to a new path.

Parameters

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.

Returns

AsyncVoidIOResult

A promise that resolves to an AsyncIOResult indicating whether the file or directory was successfully moved.

Defined in

fs/opfs_ext.ts:202