管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2023-02-10 9b6fc58ae37b2745310e6942af1a4dae51a82c56
src/main/java/com/lf/server/helper/PathHelper.java
@@ -25,7 +25,7 @@
    private static int sharePath = 1;
    private final static double D90 = 90;
    private final static double D85 = 85;
    private final static Log log = LogFactory.getLog(PathHelper.class);
@@ -158,12 +158,12 @@
    public void deleteOldPath(String tempPath) {
        try {
            double ran = Math.random() * 99;
            if (ran < D90) {
            if (ran < D85) {
                return;
            }
            File file = new File(tempPath);
            String str = StringHelper.YMD__FORMAT.format(new Date());
            String str = StringHelper.YMD2_FORMAT.format(new Date());
            File[] files = file.listFiles();
            for (File f : files) {