mirror of
https://github.com/rustfs/rustfs.git
synced 2026-07-26 16:28:15 +00:00
fix: make_volume api error
Signed-off-by: junxiang Mu <1948535941@qq.com>
This commit is contained in:
@@ -1322,6 +1322,7 @@ impl DiskAPI for LocalDisk {
|
||||
if let Err(e) = utils::fs::access(&volume_dir).await {
|
||||
if os_is_not_exist(&e) {
|
||||
os::make_dir_all(&volume_dir, self.root.as_path()).await?;
|
||||
return Ok(());
|
||||
}
|
||||
if os_is_permission(&e) {
|
||||
return Err(Error::new(DiskError::DiskAccessDenied));
|
||||
|
||||
Reference in New Issue
Block a user