已完成v1.1.0-release

This commit is contained in:
kohgylw 2022-07-29 12:51:28 +08:00
parent 5249e2b7d9
commit 56cda380a7
8 changed files with 6 additions and 3 deletions

BIN
filesystem/fileblocks/.DS_Store vendored Normal file

Binary file not shown.

BIN
filesystem/temporaryfiles/.DS_Store vendored Normal file

Binary file not shown.

View File

@ -61,7 +61,10 @@ public class FileBlockUtil {
try {
Iterator<Path> 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<Path> blocks = ds.iterator();
while (blocks.hasNext()) {
File testBlock = blocks.next().toFile();
if (testBlock.isFile()) {
if (testBlock.isFile() && !testBlock.getName().startsWith(".")) {
List<Node> nodes = fm.queryByPath(testBlock.getName());
if (nodes == null || nodes.isEmpty()) {
testBlock.delete();

View File

@ -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