From cc0e4686593ff020111326eda0d844d1e962d855 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Wed, 6 Feb 2013 15:55:35 +0000 Subject: [PATCH] * fix issue with extracting only certain files --- source/net/sourceforge/filebot/cli/CmdlineOperations.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/net/sourceforge/filebot/cli/CmdlineOperations.java b/source/net/sourceforge/filebot/cli/CmdlineOperations.java index 14799afa..5dbba53f 100644 --- a/source/net/sourceforge/filebot/cli/CmdlineOperations.java +++ b/source/net/sourceforge/filebot/cli/CmdlineOperations.java @@ -1082,7 +1082,7 @@ public class CmdlineOperations implements CmdlineInterface { } CLILogger.info(String.format("Read archive [%s] to [%s]", file.getName(), outputFolder)); - FileMapper outputMapper = new FileMapper(outputFolder, false); + final FileMapper outputMapper = new FileMapper(outputFolder, false); final List outputMapping = new ArrayList(); for (File entry : archive.listFiles()) { @@ -1119,7 +1119,7 @@ public class CmdlineOperations implements CmdlineInterface { @Override public boolean accept(File entry) { - return selection.contains(entry); + return selection.contains(outputMapper.getOutputFile(entry)); } }); extractedFiles.addAll(selection);