Mercurial > hg > digilib-old
diff servlet/src/digilib/io/Directory.java @ 282:87dca7119596
Servlet version 1.22b1
- more fast searching (hopefully all working now)
- some simple synchronisation
- some reshuffling of methods to eliminate cruft
author | robcast |
---|---|
date | Fri, 15 Oct 2004 16:59:47 +0200 |
parents | b21915a3fc24 |
children | 90bab835fc25 |
line wrap: on
line diff
--- a/servlet/src/digilib/io/Directory.java Fri Oct 15 16:59:47 2004 +0200 +++ b/servlet/src/digilib/io/Directory.java Fri Oct 15 16:59:47 2004 +0200 @@ -35,9 +35,9 @@ protected Logger logger = Logger.getLogger(this.getClass()); /** File object pointing to the directory */ - File dir = null; + protected File dir = null; /** parent directory */ - Directory parent = null; + protected Directory parent = null; /** list of filenames in the directory */ protected String[] list = null; @@ -82,10 +82,10 @@ */ public boolean readDir() { if (dir != null) { - logger.debug("start reading dir"); + logger.debug("reading dir: "+dir.getPath()); list = dir.list(); Arrays.sort(list); - logger.debug("done reading dir"); + logger.debug(" done"); } return (list != null); }