Fix local deatil

This commit is contained in:
jhengazuki 2025-10-28 19:17:39 +08:00
parent 1fcca306a0
commit ca882458ac
3 changed files with 4 additions and 3 deletions

View File

@ -71,8 +71,9 @@ public class Local extends Spider {
return Result.string(create(name, url));
} else {
File file = new File(ids.get(0));
List<File> files = Path.list(file.getParentFile());
return Result.string(create(file, files));
File parent = file.getParentFile();
List<File> files = Path.list(parent);
return Result.string(create(parent != null ? parent : file, files));
}
}

Binary file not shown.

View File

@ -1 +1 @@
bc0b643f8920201b9d08f2e605f51acd
e7eabe878887922e3e2e6b011caa80fc