# HG changeset patch # User robcast # Date 1389618785 -3600 # Node ID e8862382a8f2a499f8ca1c3b97df082408124660 # Parent c8e7f5552849fc34c5d2b2a632f4f5c69445c12f fix for number of files in directory cache. diff -r c8e7f5552849 -r e8862382a8f2 common/src/main/java/digilib/io/DocuDirCache.java --- 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