Skip to content

Latest commit

 

History

History
36 lines (23 loc) · 900 Bytes

copy.md

File metadata and controls

36 lines (23 loc) · 900 Bytes

happy-opfsDocs


happy-opfs / copy

Function: copy()

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

Copies a file or directory from one location to another same as cp -r.

Both srcPath and destPath must both be a file or directory.

Parameters

Parameter Type Description
srcPath string The source file/directory path.
destPath string The destination file/directory path.
options? CopyOptions The copy options.

Returns

AsyncVoidIOResult

A promise that resolves to an AsyncVoidIOResult indicating whether the file was successfully copied.

Defined in

fs/opfs_ext.ts:136