|
@@ -125,10 +125,11 @@ public class OssFileService extends AbstractFYunFileService {
|
|
|
@Override
|
|
|
public void deleteFolder(String bucket, String remoteFolderPath) {
|
|
|
try {
|
|
|
- if (!remoteFolderPath.endsWith(File.separator)) {
|
|
|
- remoteFolderPath = remoteFolderPath + File.separator;
|
|
|
- }
|
|
|
|
|
|
+ if (!remoteFolderPath.endsWith("/")) {
|
|
|
+ remoteFolderPath = remoteFolderPath + "/";
|
|
|
+ }
|
|
|
+ log.info("开始删除文件夹:{}", remoteFolderPath);
|
|
|
boolean flag = true;
|
|
|
String nextMaker = null;
|
|
|
ListObjectsRequest listObjectsRequest = new ListObjectsRequest(bucket).withPrefix(remoteFolderPath).withMaxKeys(1000);
|