oci-cli icon indicating copy to clipboard operation
oci-cli copied to clipboard

Please add --prefix to "os put" command

Open pocelka opened this issue 1 year ago • 1 comments

Hello,

I'm playing little bit with the CLI and it is somehow hard for me to understand why --prefix parameter is missing for oci os put command. While I can use bulk-upload and prefix as suggested in #354, I find it quite strange that if I want to upload single file to bucket I don't have an option to specify "folder" (--prefix) to which this file should be uploaded.

Do you think that it would be possible?

pocelka avatar Mar 23 '23 13:03 pocelka

You can simply add the prefix to the object name. For example: oci os object put --name folder/myobject will put "myobject" in the virtual "folder".

kevco-us avatar May 10 '23 16:05 kevco-us