| | |
| | | import com.qianwen.core.tool.utils.StringUtil; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | /* loaded from: blade-core-boot-9.3.0.0-SNAPSHOT.jar:org/springblade/core/boot/file/BladeFileUtil.class */ |
| | | public class BladeFileUtil { |
| | | private static final String IS_DIR = "is_dir"; |
| | | private static final String FILE_NAME = "filename"; |
| | |
| | | return StringUtil.isNotBlank(ext) && (ext.contains(fileExt.toLowerCase()) || ext.contains(fileExt.toUpperCase())); |
| | | } |
| | | |
| | | /* loaded from: blade-core-boot-9.3.0.0-SNAPSHOT.jar:org/springblade/core/boot/file/BladeFileUtil$FileSort.class */ |
| | | |
| | | public enum FileSort { |
| | | size, |
| | | type, |
| | |
| | | } |
| | | } |
| | | |
| | | /* loaded from: blade-core-boot-9.3.0.0-SNAPSHOT.jar:org/springblade/core/boot/file/BladeFileUtil$NameComparator.class */ |
| | | |
| | | public static class NameComparator implements Comparator { |
| | | @Override // java.util.Comparator |
| | | public int compare(Object a, Object b) { |
| | |
| | | } |
| | | } |
| | | |
| | | /* loaded from: blade-core-boot-9.3.0.0-SNAPSHOT.jar:org/springblade/core/boot/file/BladeFileUtil$SizeComparator.class */ |
| | | |
| | | public static class SizeComparator implements Comparator { |
| | | @Override // java.util.Comparator |
| | | public int compare(Object a, Object b) { |
| | |
| | | } |
| | | } |
| | | |
| | | /* loaded from: blade-core-boot-9.3.0.0-SNAPSHOT.jar:org/springblade/core/boot/file/BladeFileUtil$TypeComparator.class */ |
| | | |
| | | public static class TypeComparator implements Comparator { |
| | | @Override // java.util.Comparator |
| | | public int compare(Object a, Object b) { |