1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-11-17 14:55:09 -05:00

* fix issue with extracting only certain files

This commit is contained in:
Reinhard Pointner 2013-02-06 15:55:35 +00:00
parent 18c422cda0
commit cc0e468659

View File

@ -1082,7 +1082,7 @@ public class CmdlineOperations implements CmdlineInterface {
} }
CLILogger.info(String.format("Read archive [%s] to [%s]", file.getName(), outputFolder)); 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<File> outputMapping = new ArrayList<File>(); final List<File> outputMapping = new ArrayList<File>();
for (File entry : archive.listFiles()) { for (File entry : archive.listFiles()) {
@ -1119,7 +1119,7 @@ public class CmdlineOperations implements CmdlineInterface {
@Override @Override
public boolean accept(File entry) { public boolean accept(File entry) {
return selection.contains(entry); return selection.contains(outputMapper.getOutputFile(entry));
} }
}); });
extractedFiles.addAll(selection); extractedFiles.addAll(selection);