1
0
mirror of https://e.coding.net/circlecloud/YumCore.git synced 2024-11-21 01:38:51 +00:00

fix: 文件已存在时忽略文件释放

Signed-off-by: 502647092 <admin@yumc.pw>
This commit is contained in:
502647092 2017-02-05 10:10:11 +08:00
parent 192aaa3515
commit 64b45f90b4

View File

@ -139,7 +139,7 @@ public class P {
jar.stream().forEach(je -> {
if (!je.isDirectory()) {
for (final String dir : dirs) {
if (je.getName().startsWith(dir)) {
if (je.getName().startsWith(dir) && !new File(getDataFolder(), je.getName()).exists()) {
instance.saveResource(je.getName(), false);
}
}