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

How to create and delete a directory in a bucket? #112

Open
dev-ptdi opened this issue Jul 31, 2020 · 1 comment
Open

How to create and delete a directory in a bucket? #112

dev-ptdi opened this issue Jul 31, 2020 · 1 comment

Comments

@dev-ptdi
Copy link

Hi,

How to create and delete a directory in a bucket? I did not find such method in SDK.

please help

many thanks

@XgHao
Copy link

XgHao commented Mar 3, 2022

I have the same question today.
No such method is provided in dot net SDK .
But you can refer to java SDK
I just want to create a directory, so I do this

var path = "myDir";
var fileName = "file.txt";
var ossObjectKey = $"{path}/{fileName}";
OssClient.PutObject(..., ossObjectKey, ...);

It's work!

Unfortunately, today is 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