Correction suggested by Chris Morse to continue searching for

a file in getFile until it is found.
This commit is contained in:
Robert Greene 2003-09-05 03:24:44 +00:00
parent ad5908561b
commit e86ef7130e

View File

@ -275,7 +275,7 @@ public abstract class FormattedDisk extends Disk implements DirectoryEntry {
if (entry.isDirectory()) {
theFileEntry = getFile(
((DirectoryEntry)entry).getFiles(), filename);
break;
if (theFileEntry != null) break;
}
String otherFilename = entry.getFilename();
if (otherFilename != null) otherFilename = otherFilename.trim();