Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C/C++ reference material in 3P docs in Persistent File Storage/FileSystem.md #85

Open
Tracked by #68
pklaschka opened this issue Oct 18, 2022 · 0 comments
Open
Tracked by #68

Comments

@pklaschka
Copy link
Contributor

pklaschka commented Oct 18, 2022

## 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++)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant