boxcli icon indicating copy to clipboard operation
boxcli copied to clipboard

Box Folder Download Overwrite/Ignore

Open jacquesvandermerwe opened this issue 5 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