mirror of
https://github.com/KOHGYLW/kiftd-source.git
synced 2025-01-08 12:07:47 +08:00
已完成v1.1.0-release
This commit is contained in:
parent
5249e2b7d9
commit
56cda380a7
BIN
filesystem/fileblocks/.DS_Store
vendored
Normal file
BIN
filesystem/fileblocks/.DS_Store
vendored
Normal file
Binary file not shown.
BIN
filesystem/temporaryfiles/.DS_Store
vendored
Normal file
BIN
filesystem/temporaryfiles/.DS_Store
vendored
Normal file
Binary file not shown.
@ -61,7 +61,10 @@ public class FileBlockUtil {
|
|||||||
try {
|
try {
|
||||||
Iterator<Path> listFiles = Files.newDirectoryStream(f.toPath()).iterator();
|
Iterator<Path> listFiles = Files.newDirectoryStream(f.toPath()).iterator();
|
||||||
while (listFiles.hasNext()) {
|
while (listFiles.hasNext()) {
|
||||||
listFiles.next().toFile().delete();
|
File tempFile = listFiles.next().toFile();
|
||||||
|
if(!tempFile.getName().startsWith(".")) {
|
||||||
|
tempFile.delete();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
lu.writeException(e);
|
lu.writeException(e);
|
||||||
@ -462,7 +465,7 @@ public class FileBlockUtil {
|
|||||||
Iterator<Path> blocks = ds.iterator();
|
Iterator<Path> blocks = ds.iterator();
|
||||||
while (blocks.hasNext()) {
|
while (blocks.hasNext()) {
|
||||||
File testBlock = blocks.next().toFile();
|
File testBlock = blocks.next().toFile();
|
||||||
if (testBlock.isFile()) {
|
if (testBlock.isFile() && !testBlock.getName().startsWith(".")) {
|
||||||
List<Node> nodes = fm.queryByPath(testBlock.getName());
|
List<Node> nodes = fm.queryByPath(testBlock.getName());
|
||||||
if (nodes == null || nodes.isEmpty()) {
|
if (nodes == null || nodes.isEmpty()) {
|
||||||
testBlock.delete();
|
testBlock.delete();
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#Generated by Maven Integration for Eclipse
|
#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.projectLocation=/Users/kohgylw/Programs/java_workspace/kiftd-source
|
||||||
m2e.projectName=kiftd-source
|
m2e.projectName=kiftd-source
|
||||||
groupId=kohgylw
|
groupId=kohgylw
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user