管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2023-09-18 a338dc252ced3f019f74a710153c28cb0a9329a1
src/main/java/com/lf/server/helper/FileHelper.java
@@ -14,7 +14,6 @@
import java.security.MessageDigest;
import java.text.DecimalFormat;
import java.util.List;
import java.util.Objects;
/**
 * 文件帮助类
@@ -25,9 +24,6 @@
    /**
     * 获取文件名
     *
     * @param file
     * @return
     */
    public static String getFileName(String file) {
        int idx = file.lastIndexOf(File.separator);
@@ -36,6 +32,19 @@
        }
        return "";
    }
    /**
     * 获取文件名称
     */
    public static String getName(String file) {
        String fileName = getFileName(file);
        int idx = fileName.lastIndexOf(".");
        if (idx > -1) {
            return fileName.substring(0, idx);
        }
        return fileName;
    }
    /**
@@ -74,9 +83,6 @@
    /**
     * 获取多用途互联网邮件扩展类型
     *
     * @param ext 文件扩展名
     * @return
     */
    public static String getMime(String ext) {
        switch (ext) {