Skip to content

Conversation

@gammazero
Copy link
Contributor

Adds a --force option to allow the ipfs files cp command to overwrite existig files. Returns error is trying to overwrite directories.

Replaces #4079

Closes #2074

Adds a `--force` option to allow the `ipfs files cp` command to overwrite existig files. Returns error is trying to overwrite directories.

Replaces #4079

Closes #2074
Copy link
Member

@lidel lidel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Triage note: files-only fine for now (we can see if users need force for directories)

nit: fix sharness (see comment inline)

@gammazero gammazero merged commit c4c70cb into master Jun 10, 2025
15 of 16 checks passed
@gammazero gammazero deleted the commands-cp-force branch June 10, 2025 15:21
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

Successfully merging this pull request may close these issues.

files cp: add an "overwrite" option

3 participants