boxcli icon indicating copy to clipboard operation
boxcli copied to clipboard

Box Folder Download Overwrite/Ignore

Open jacquesvandermerwe opened this issue 6 years ago • 6 comments

When you using the box folders:download option there is no option of ignore existing files or overwrite in the target. This means that we cannot download as it fails as soon as a folder already exists.

Would it be possible to define a 'skip' or 'overwrite' when doing a folder download?

jacquesvandermerwe avatar Feb 19 '19 13:02 jacquesvandermerwe

@jacquesvandermerwe Can you elaborate more on the use case for this? If a user wants to overwrite any existing files anyway, they should be able to delete the folder they already have and re-download — that would have the same effect. Is there a compelling case for the skip behavior?

mattwiller avatar Feb 19 '19 18:02 mattwiller

@mattwiller This is an action that is done for a LOT of content. The box cli is used in combination with Upload and Download actions. Only new data is synced down and the other source uploads new content which is then synced back up to Box. So the CLI is being used to create a stable state. With the amount content it will cause excessive price spikes on the platform API call count and bandwidth costs. So if the content already exists it should not be overwritten but skipped.

jacquesvandermerwe avatar Feb 19 '19 18:02 jacquesvandermerwe

@jacquesvandermerwe Makes sense to me! I'll add this to our backlog.

mattwiller avatar Feb 19 '19 18:02 mattwiller

This issue has been automatically marked as stale because it has not been updated in the last 30 days. It will be closed if no further activity occurs within the next 7 days. Feel free to reach out or mention Box SDK team member for further help and resources if they are needed.

stale[bot] avatar Aug 02 '22 21:08 stale[bot]

This issue has been automatically closed due to maximum period of being stale. Thank you for your contribution to Box CLI and feel free to open another PR/issue at any time.

stale[bot] avatar Aug 09 '22 22:08 stale[bot]

This issue was closed by mistake.

There is already a corresponding Pulse request #39125995. We'll review this request and add to the roadmap in a few quarters.

mgrytsai avatar Aug 22 '22 11:08 mgrytsai

Hello, just wondering if there is any update on this topic? Thx!

plmeta avatar Jul 04 '23 09:07 plmeta

Hi @plmeta

This change isn't planned for the next release (Aug-Nov 2023), however we'll evaluate it for the next release cycle. Team is currently busy with making significant enhancement to underlying library we use and after that we will evaluate our roadmap and consider this change.

mgrytsai avatar Jul 04 '23 13:07 mgrytsai

Hi @plmeta

We have just implemented this feature and it should be included in the next release.

congminh1254 avatar Feb 06 '24 11:02 congminh1254

Is it possible to also implement this feature to box folders:update? I encountered this issue when the uploading process got interrupted and I am not allowed to continue the process as it fails as soon as a folder already exists.

robinshi123 avatar Feb 21 '24 20:02 robinshi123