Skip to content

fs: add cp method #35880

@cappp

Description

@cappp

Is your feature request related to a problem? Please describe.
Whenever I need to copy a directory to another destiny, I need to use an alternative library to do this.

Describe the solution you'd like
Add cp (Unix Name) method to fs, with the same utility of cp Unix, he can be like:

Parameters
src: PathLike
dest: PathLike
options: CpOptions

Describe alternatives you've considered
Library npc and fs-extra.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestIssues that request new features to be added to Node.js.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions