update:更新下载通知逻辑
This commit is contained in:
parent
0a15594184
commit
ed70cea2a6
11
pom.xml
11
pom.xml
@ -120,17 +120,24 @@
|
||||
<dependency>
|
||||
<groupId>com.aliyun.oss</groupId>
|
||||
<artifactId>aliyun-sdk-oss</artifactId>
|
||||
<version>3.14.1</version>
|
||||
<version>3.15.2</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.drewnoakes</groupId>
|
||||
<artifactId>metadata-extractor</artifactId>
|
||||
<version>2.17.0</version>
|
||||
<version>2.18.0</version>
|
||||
</dependency>
|
||||
<!-- <dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-security</artifactId>
|
||||
</dependency>-->
|
||||
|
||||
<dependency>
|
||||
<groupId>com.acgist</groupId>
|
||||
<artifactId>snail</artifactId>
|
||||
<version>1.17.1</version>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
|
File diff suppressed because one or more lines are too long
@ -26,6 +26,7 @@ import java.security.MessageDigest;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Base64;
|
||||
import java.util.Date;
|
||||
import java.util.Objects;
|
||||
import java.util.Random;
|
||||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
@ -397,4 +398,22 @@ public class Tools {
|
||||
},false,true);
|
||||
return UPSPower;
|
||||
}
|
||||
|
||||
public static void delDir(String path){
|
||||
File file = new File(path);
|
||||
if(file.exists()){
|
||||
for (File listFile : Objects.requireNonNull(file.listFiles())) {
|
||||
if(listFile.isFile()){
|
||||
listFile.delete();
|
||||
}else{
|
||||
if(Objects.requireNonNull(listFile.listFiles()).length > 0){
|
||||
delDir(listFile.getAbsolutePath());
|
||||
}else{
|
||||
listFile.delete();
|
||||
}
|
||||
}
|
||||
}
|
||||
file.delete();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user