|
@@ -251,7 +251,7 @@ public class FileExtractUtil {
|
|
|
* @return 文件结构Map
|
|
|
*/
|
|
|
public static Map<String, Object> getFileStructure(Path file) {
|
|
|
- Map<String, Object> structure = new TreeMap<>(Comparator.comparing(String::toString));
|
|
|
+ Map<String, Object> structure = new LinkedHashMap<>();
|
|
|
structure.put("name", file.getFileName().toString());
|
|
|
structure.put("type", "file");
|
|
|
structure.put("path", file.toString());
|