1.解决会读取本地隐藏文件的问题

This commit is contained in:
wusheng 2015-11-12 16:14:00 +08:00
parent 96b19356b6
commit 3f2c1238c6
1 changed files with 3 additions and 0 deletions

View File

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