mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-10 07:06:53 +00:00
delete_bucket todo
This commit is contained in:
@@ -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(())
|
||||
|
||||
Reference in New Issue
Block a user