1.解决会读取本地隐藏文件的问题
This commit is contained in:
parent
96b19356b6
commit
3f2c1238c6
|
|
@ -108,6 +108,9 @@ public class PersistenceThread extends Thread {
|
|||
NameFileComparator sizeComparator = new NameFileComparator();
|
||||
File[] dataFileList = sizeComparator.sort(parentDir.listFiles());
|
||||
for (File file : dataFileList) {
|
||||
if(file.getName().startsWith(".")){
|
||||
continue;
|
||||
}
|
||||
if (MemoryRegister.instance().isRegister(file.getName())) {
|
||||
if (logger.isDebugEnabled())
|
||||
logger.debug("The file [{}] is being used by another thread ", file);
|
||||
|
|
|
|||
Loading…
Reference in New Issue