mirror of
https://github.com/mitb-archive/filebot
synced 2024-12-23 00:08:51 -05:00
Ensure p7zip Version 9.20 compatibility
This commit is contained in:
parent
cb8353f1e7
commit
0cec27c7bb
@ -101,14 +101,14 @@ public class ShellExecutables implements ArchiveExtractor {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void extract(File archive, File outputFolder) throws IOException {
|
public void extract(File archive, File outputFolder) throws IOException {
|
||||||
String[] command = { getCommand(), "x", "-y", "-aos", archive.getPath(), "-o" + outputFolder.getPath() };
|
String[] command = { getCommand(), "x", "-y", "-o" + outputFolder.getPath(), archive.getPath() };
|
||||||
|
|
||||||
execute(command);
|
execute(command);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void extract(File archive, File outputFolder, FileFilter filter) throws IOException {
|
public void extract(File archive, File outputFolder, FileFilter filter) throws IOException {
|
||||||
String[] command = { getCommand(), "x", "-y", "-aos", archive.getPath(), "-o" + outputFolder.getPath() };
|
String[] command = { getCommand(), "x", "-y", "-o" + outputFolder.getPath(), archive.getPath() };
|
||||||
String[] selection = listFiles(archive).stream().filter(f -> filter.accept(f.toFile())).map(FileInfo::getPath).toArray(String[]::new);
|
String[] selection = listFiles(archive).stream().filter(f -> filter.accept(f.toFile())).map(FileInfo::getPath).toArray(String[]::new);
|
||||||
|
|
||||||
execute(command, selection);
|
execute(command, selection);
|
||||||
|
Loading…
Reference in New Issue
Block a user