-
Notifications
You must be signed in to change notification settings - Fork 60
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
File Download: Create destination path when not existing #321
Comments
Thanks Jacques for your proposal. I agree that if CLI resolve certain errors or missing parts, it should support it. We'll definitely take a look at this use case and evaluate other situation where CLI can handle errors instead of user making extra step. In term of timeline, I believe we'll pick this up in the second half of 2022. |
Thanks. For internal reference, I created a ticket for SDK team to look at - SDK-2170 |
Hi @jacquesvandermerwe , I'm trying to understand how the creation of destination path should work. So far I can imagine two situations:
Possible scenarios for bulk file download:
In terms of interface, i think we need to expose a flag (e.g. |
Hi @mgrytsai I think the I'm split between the destination being a folder or file. I can see a use case for both. For exporting files and renaming them on the destination, it can also be quite useful if the destination is a file name. Would to flags work? |
So we already have In the end, it could work like this for single and bulk action:
Above is my ideal state scenario, we'll need to explore if that technically possible and if we can use flags like that. At this moment, the behaviour is important for me. |
Done under #393 |
Is your feature request related to a problem? Please describe.
When we download files the destination folder has to exist before the file is downloaded. If we download multiple files where they happen to have the same name that will overwrite the file.
So the feature will be
box files:download <file_id> --destination=<path_that_does_not_exist>
That will download the file after the path was created if it doesn't exist.
Describe the solution you'd like
We use a bulk file and it would be good to be able to define the path and if the path does not exist, then the CLI should create the path
Describe alternatives you've considered
Create the complete folder structure before the download, but it adds a step that is cumbersome. Or we have to wrap the CLI commands in Powershell scripts
Additional context
There is a matching request for folder #267
The text was updated successfully, but these errors were encountered: