-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
uxp/src/pages/uxp/reference-js/Modules/uxp/Persistent File Storage/FileSystem.md
Lines 292 to 302 in 4751009
| ## copyFile(srcPath, destPath, flags, callback) | |
| Copies a file or a folder from the source path to the destination path | |
| **Returns**: `Promise<int>` - 0 if succeeded, otherwise throws an Error | |
| | Param | Type | Default | Description | | |
| | --- | --- | --- | --- | | |
| | srcPath | `string` | | path where the source file to copy is located | | |
| | destPath | `string` | | path where the source file will be copied to | | |
| | flags | `int` | `0` | see flags in [uv_fs_copyfile](https://docs.libuv.org/en/v1.x/fs.html) | | |
| | callback | `function` | | if not provided, this function will return Promise object | |
The link to https://docs.libuv.org/en/v1.x/fs.html provides C/C++ references which will be hard to understand for developers who are more on the light-weight scripting side of things and may not have any experience with more compiler-based languages (let alone C/C++)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels