| | |
| | | package com.lf.server.helper; |
| | | |
| | | import com.lf.server.config.PropertiesConfig; |
| | | import com.lf.server.entity.all.SettingData; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | |
| | | public class PathHelper { |
| | | @Autowired |
| | | private PropertiesConfig config; |
| | | |
| | | private static int MAX_FILES = 2000; |
| | | |
| | | private static int importPath = 1; |
| | | |
| | |
| | | } |
| | | |
| | | File[] files = file.listFiles(); |
| | | if (files.length < MAX_FILES) { |
| | | if (files.length < SettingData.MAX_FILES) { |
| | | return subPath; |
| | | } |
| | | |