diff --git a/filesystem/fileblocks/.DS_Store b/filesystem/fileblocks/.DS_Store new file mode 100644 index 0000000..5008ddf Binary files /dev/null and b/filesystem/fileblocks/.DS_Store differ diff --git a/filesystem/temporaryfiles/.DS_Store b/filesystem/temporaryfiles/.DS_Store new file mode 100644 index 0000000..5008ddf Binary files /dev/null and b/filesystem/temporaryfiles/.DS_Store differ diff --git a/src/main/java/kohgylw/kiftd/server/util/FileBlockUtil.java b/src/main/java/kohgylw/kiftd/server/util/FileBlockUtil.java index 9dd19d3..bc574af 100644 --- a/src/main/java/kohgylw/kiftd/server/util/FileBlockUtil.java +++ b/src/main/java/kohgylw/kiftd/server/util/FileBlockUtil.java @@ -61,7 +61,10 @@ public class FileBlockUtil { try { Iterator listFiles = Files.newDirectoryStream(f.toPath()).iterator(); while (listFiles.hasNext()) { - listFiles.next().toFile().delete(); + File tempFile = listFiles.next().toFile(); + if(!tempFile.getName().startsWith(".")) { + tempFile.delete(); + } } } catch (IOException e) { lu.writeException(e); @@ -462,7 +465,7 @@ public class FileBlockUtil { Iterator blocks = ds.iterator(); while (blocks.hasNext()) { File testBlock = blocks.next().toFile(); - if (testBlock.isFile()) { + if (testBlock.isFile() && !testBlock.getName().startsWith(".")) { List nodes = fm.queryByPath(testBlock.getName()); if (nodes == null || nodes.isEmpty()) { testBlock.delete(); diff --git a/target/classes/META-INF/maven/kohgylw/kiftd/pom.properties b/target/classes/META-INF/maven/kohgylw/kiftd/pom.properties index 68c027c..467e057 100644 --- a/target/classes/META-INF/maven/kohgylw/kiftd/pom.properties +++ b/target/classes/META-INF/maven/kohgylw/kiftd/pom.properties @@ -1,5 +1,5 @@ #Generated by Maven Integration for Eclipse -#Fri Jul 29 12:03:09 CST 2022 +#Fri Jul 29 12:42:00 CST 2022 m2e.projectLocation=/Users/kohgylw/Programs/java_workspace/kiftd-source m2e.projectName=kiftd-source groupId=kohgylw diff --git a/target/classes/kohgylw/kiftd/server/util/ConfigureReader.class b/target/classes/kohgylw/kiftd/server/util/ConfigureReader.class index d80364b..a39f907 100644 Binary files a/target/classes/kohgylw/kiftd/server/util/ConfigureReader.class and b/target/classes/kohgylw/kiftd/server/util/ConfigureReader.class differ diff --git a/target/classes/kohgylw/kiftd/server/util/FileBlockUtil$1.class b/target/classes/kohgylw/kiftd/server/util/FileBlockUtil$1.class index 60162f5..f47584d 100644 Binary files a/target/classes/kohgylw/kiftd/server/util/FileBlockUtil$1.class and b/target/classes/kohgylw/kiftd/server/util/FileBlockUtil$1.class differ diff --git a/target/classes/kohgylw/kiftd/server/util/FileBlockUtil$2.class b/target/classes/kohgylw/kiftd/server/util/FileBlockUtil$2.class index adbe0aa..e4defd5 100644 Binary files a/target/classes/kohgylw/kiftd/server/util/FileBlockUtil$2.class and b/target/classes/kohgylw/kiftd/server/util/FileBlockUtil$2.class differ diff --git a/target/classes/kohgylw/kiftd/server/util/FileBlockUtil.class b/target/classes/kohgylw/kiftd/server/util/FileBlockUtil.class index 83d9463..5f9a666 100644 Binary files a/target/classes/kohgylw/kiftd/server/util/FileBlockUtil.class and b/target/classes/kohgylw/kiftd/server/util/FileBlockUtil.class differ