Take a more cautious approach to dumping files that are in ProDOS file directories

This commit is contained in:
2012-07-06 17:13:12 +00:00
parent 9b985c140e
commit 852522d58d
1 changed files with 2 additions and 1 deletions

View File

@ -253,7 +253,8 @@ public class ac {
Iterator it = files.iterator();
while (it.hasNext()) {
FileEntry entry = (FileEntry) it.next();
if ((entry != null) && (!entry.isDeleted())) {
// FIXME: dumping files within (ProDOS) directories isn't handled. For now, ignore them.
if ((entry != null) && (!entry.isDeleted()) && (!entry.isDirectory())) {
FileFilter ff = entry.getSuggestedFilter();
if (ff instanceof BinaryFileFilter)
ff = new HexDumpFileFilter();