comparison servlet/src/digilib/io/DocuDirectory.java @ 152:f4a5cfe37469

Servlet version 1.16a1 - cleanup of DigilibConfig class - now uses new Parameter and ParameterMap classes - new parameter default-quality
author robcast
date Wed, 03 Sep 2003 00:54:38 +0200
parents bc8df0133c04
children 688ad0b8b0fa
comparison
equal deleted inserted replaced
151:bc8df0133c04 152:f4a5cfe37469
124 // number of base dirs 124 // number of base dirs
125 int nb = baseDirNames.length; 125 int nb = baseDirNames.length;
126 // array of base dirs 126 // array of base dirs
127 Directory[] dirs = new Directory[nb]; 127 Directory[] dirs = new Directory[nb];
128 // the first directory has to exist 128 // the first directory has to exist
129 dir = new File(baseDirNames[0] + dirName); 129 dir = new File(baseDirNames[0], dirName);
130 130
131 if (dir.isDirectory()) { 131 if (dir.isDirectory()) {
132 // fill array with the remaining directories 132 // fill array with the remaining directories
133 for (int j = 1; j < nb; j++) { 133 for (int j = 1; j < nb; j++) {
134 File d = new File(baseDirNames[j] + dirName); 134 File d = new File(baseDirNames[j], dirName);
135 if (d.isDirectory()) { 135 if (d.isDirectory()) {
136 dirs[j] = new Directory(d); 136 dirs[j] = new Directory(d);
137 } 137 }
138 } 138 }
139 139