Skip to content

NIOFileSystem: provide a function that copies or replaces a file/dir #3403

@weissi

Description

@weissi

Usually, when copying a file, I don't hugely mind if it already exists. If it does, I want to overwrite it.

NIO FS currently provides copyItem (fails if dest already exists) and replaceItem (fails if dest does not already exist). This makes for pretty awkward code if you want to do it correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGood for newcomerskind/enhancementImprovements to existing feature.size/SSmall task. (A couple of hours of work.)

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions