Skip to content

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

@pklaschka

Description

@pklaschka

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions