Skip to content

commands: add --force option to files cp command - #10823

Merged
gammazero merged 4 commits into
masterfrom
commands-cp-force
Jun 10, 2025
Merged

gammazero merged 4 commits into
masterfrom
commands-cp-force

Conversation

@gammazero

Copy link
Copy Markdown
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
Comment thread core/commands/files.go

@lidel lidel left a comment

Copy link
Copy Markdown
Contributor

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)

Comment thread test/sharness/t0250-files-api.sh Outdated
@gammazero
gammazero merged commit c4c70cb into master Jun 10, 2025
@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

2 participants