delete_bucket todo

This commit is contained in:
weisd
2024-08-21 10:05:19 +08:00
parent df4504eb06
commit 05056f6b8d
5 changed files with 47 additions and 3 deletions
+1
View File
@@ -877,6 +877,7 @@ impl DiskAPI for LocalDisk {
async fn delete_volume(&self, volume: &str) -> Result<()> {
let p = self.get_bucket_path(volume)?;
// TODO: 不能用递归删除,如果目录下面有文件,返回errVolumeNotEmpty
fs::remove_dir_all(&p).await?;
Ok(())