diff servlet/src/digilib/io/DocuDirCache.java @ 116:55bc0e928ac5

Servlet Version 1.9b4 Fixed bug with single file access on windows.
author robcast
date Tue, 27 May 2003 21:41:04 +0200
parents 226624784fe3
children bc8df0133c04
line wrap: on
line diff
--- a/servlet/src/digilib/io/DocuDirCache.java	Fri May 16 11:01:42 2003 +0200
+++ b/servlet/src/digilib/io/DocuDirCache.java	Tue May 27 21:41:04 2003 +0200
@@ -100,8 +100,8 @@
 			} else {
 				// maybe it's a file
 				if (f.canRead()) {
-					// get the parent directory
-					String d = fn.substring(0, fn.lastIndexOf(File.separator));
+					// get the parent directory string (like we store it in the cache)
+					String d = fn.substring(0, fn.lastIndexOf("/"));
 					// try it in the cache
 					dd = (DocuDirectory) map.get(d);
 					if (dd == null) {