Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

files cp: add an "overwrite" option #2074

Open
fazo96 opened this issue Dec 15, 2015 · 11 comments
Open

files cp: add an "overwrite" option #2074

fazo96 opened this issue Dec 15, 2015 · 11 comments
Labels
exp/novice Someone with a little familiarity can pick up help wanted Seeking public contribution on this issue kind/enhancement A net-new feature or improvement to an existing feature topic/files Topic files

Comments

@fazo96
Copy link

fazo96 commented Dec 15, 2015

Sometimes files cp could be used to overwrite something existing with a newer version.

In that use case, the file has to be removed first with files rm. Maybe consider adding an overwrite or force option to files cp?

@Kubuxu
Copy link
Member

Kubuxu commented Feb 5, 2016

It would also be useful for ipfs files mv. Both normal mv and cp have -f flag to override existing content.

@em-ly em-ly added kind/enhancement A net-new feature or improvement to an existing feature need/community-input Needs input from the wider community labels Aug 25, 2016
@Kubuxu Kubuxu removed the need/community-input Needs input from the wider community label Dec 27, 2016
@Kubuxu
Copy link
Member

Kubuxu commented Dec 27, 2016

As a note, -f flag is taken by flush option, we will have to use --force.

@Kubuxu Kubuxu added help wanted Seeking public contribution on this issue exp/novice Someone with a little familiarity can pick up labels Dec 27, 2016
@te0d
Copy link
Contributor

te0d commented Jul 18, 2017

Currently ipfs files mv always overwrites a target file.

@CharlieRoseMarie
Copy link

Is this issue still relevant? I'd like to contribute.

@te0d
Copy link
Contributor

te0d commented Aug 14, 2018

@CharlieRoseMarie I submitted a pull request on this issues a while ago but its been stagnant.

@schomatis schomatis self-assigned this Aug 15, 2018
@schomatis schomatis added the topic/files Topic files label Aug 15, 2018
@schomatis
Copy link
Contributor

Hey @te0d! Sorry for the delay, I'll take a look at it.

@schomatis
Copy link
Contributor

schomatis commented Aug 15, 2018

@CharlieRoseMarie If you're still interested in contributing I can help you find another issue you could work on.

@CharlieRoseMarie
Copy link

@schomatis I would love that, thank you. :)

@schomatis
Copy link
Contributor

@CharlieRoseMarie Great! I'm working on a set of issues about how are files handled in IPFS and how we could make that part of the code more clear to new developers. I could you a fresh pair of eyes on some of those issues especially from a new developer like you that could shed some light in what are the tricky parts of the code that should be simplified. I'll point you to some of the issues you could start on.

If the Files API is not your thing let me know what other part of the IPFS stack you would be interested in and I could summon the right person to get you started there.

@hsn10
Copy link

hsn10 commented Aug 1, 2021

Any progress on this? It will make my scripts easier.

@tx0c
Copy link

tx0c commented Nov 6, 2022

still need this in 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
exp/novice Someone with a little familiarity can pick up help wanted Seeking public contribution on this issue kind/enhancement A net-new feature or improvement to an existing feature topic/files Topic files
Projects
None yet
Development

No branches or pull requests

8 participants