change load path of drop data

This commit is contained in:
dragon 2022-11-24 18:21:19 +08:00
parent db86cf332b
commit c9cf52de22

View File

@ -8,7 +8,10 @@ import java.io.IOException;
import java.io.InputStream;
import java.net.URISyntaxException;
import java.nio.charset.StandardCharsets;
import java.nio.file.*;
import java.nio.file.FileSystem;
import java.nio.file.FileSystems;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
@ -113,7 +116,9 @@ public final class FileUtils {
}
public static Path getExcelPath(String filename) {
return getTsjJsonTsv(RESOURCES_PATH.resolve("ExcelBinOutput"), filename);
Path p = getTsjJsonTsv(RESOURCES_PATH.resolve("Server"), filename);
if (Files.exists(p)) return p;
else return getTsjJsonTsv(RESOURCES_PATH.resolve("ExcelBinOutput"), filename);
}
// Gets path of a resource.