changeset 1236:e8862382a8f2

fix for number of files in directory cache.
author robcast
date Mon, 13 Jan 2014 14:13:05 +0100
parents c8e7f5552849
children c3f4f1c02b11
files common/src/main/java/digilib/io/DocuDirCache.java
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/common/src/main/java/digilib/io/DocuDirCache.java	Mon Jan 13 12:45:56 2014 +0100
+++ b/common/src/main/java/digilib/io/DocuDirCache.java	Mon Jan 13 14:13:05 2014 +0100
@@ -189,6 +189,7 @@
 			dd = DocuDirectoryFactory.getDocuDirectoryInstance(fn, fileClass);
 			if (dd.isValid()) {
 			    // add to the cache
+			    dd.refresh();
 			    dd = putDir(dd);
 			} else {
 				/*
@@ -205,6 +206,7 @@
 					if (dd.isValid()) {
 						// add to the cache
                         // logger.debug(dd + " is valid");
+					    dd.refresh();
 						dd = putDir(dd);
 					} else {
 						// invalid path
@@ -252,6 +254,7 @@
 			dd = DocuDirectoryFactory.getDocuDirectoryInstance(fn, fileClass);
 			if (dd.isValid()) {
 			    // add to the cache
+                dd.refresh();
 			    dd = putDir(dd);
 			} else {
 				// try the parent directory in the cache
@@ -262,6 +265,7 @@
 					dd = DocuDirectoryFactory.getDocuDirectoryInstance(pn, fileClass);
 					if (dd.isValid()) {
 						// add to the cache
+		                dd.refresh();
 						dd = putDir(dd);
 					} else {
 						// invalid path