mirror of
https://gitee.com/xiaonuobase/snowy.git
synced 2026-03-22 10:47:16 +08:00
【修复】更修复 #ID9JE8 DevFileMinIoUtil在调用deleteFile方法时,未调用initClient()初始化客户端的bug
This commit is contained in:
@@ -438,6 +438,7 @@ public class DevFileMinIoUtil {
|
||||
*/
|
||||
public static void deleteFile(String bucketName, String key) {
|
||||
try {
|
||||
initClient();
|
||||
RemoveObjectArgs removeObjectArgs = RemoveObjectArgs.builder().bucket(bucketName).object(key).build();
|
||||
client.removeObject(removeObjectArgs);
|
||||
} catch (Exception e) {
|
||||
|
||||
Reference in New Issue
Block a user