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

--prefix is not working on Windows CLI #4

Closed
laocoi opened this issue Mar 30, 2022 · 4 comments
Closed

--prefix is not working on Windows CLI #4

laocoi opened this issue Mar 30, 2022 · 4 comments

Comments

@laocoi
Copy link

laocoi commented Mar 30, 2022

I run this command on Windows CLI:
cntb create object --region xxx --bucket tmp --prefix test/ --path A:\Download\a.jpg

The file wasn't uploaded to /test folder, instead, it went with the name: test\a.jpg at the root folder

@elteir
Copy link

elteir commented Mar 30, 2022

Hi @laocoi ,

I have checked this and found out that the CLI is working correctly. It is creating the files in the target folder as it should in the new Contabo customer-panel.

image

I think you may be talking about listing the objects from the CLI if you run the command
cntb get objects --region EU --bucket test
where you get the list of files like this:

image
This is done to be compatible with S3. Buckets and objects are the primary resources in S3, and objects are stored in buckets.
Directories don't actually exist within S3 buckets. The entire file structure is actually just one flat single-level container of files. The folder structure is just a prefix added to the file name for better organisation.

@laocoi
Copy link
Author

laocoi commented Mar 30, 2022

Hi @elteir

What I am trying to do: Upload a file from my computer to /test folder in bucket tmp on your Object Storages

This is what I did

What I got

This command is working fine on Linux

@elteir
Copy link

elteir commented Apr 5, 2022

Hi @laocoi,

Thank you for your reply. The issue is clear now on windows. We are working on a fix now for it. I will notify you once it is available.

@contabo
Copy link
Collaborator

contabo commented Apr 25, 2022

We did a patch for this bug in the last cntb version >= 1.1.2

@contabo contabo closed this as completed Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants