Подготовка к работе с внешними конвертерами

This commit is contained in:
Book Pauk
2019-02-27 20:00:55 +07:00
parent d3ff0edbff
commit 528adae3d0
7 changed files with 43 additions and 14 deletions

View File

@@ -19,8 +19,9 @@ class FileDecompressor {
let result = {
sourceFile: filename,
sourceFileType: fileType,
selectedFile: filename,
fileType: fileType,
fileListDir: outputDir,
fileList: []
};
@@ -58,10 +59,9 @@ class FileDecompressor {
if (files.length) {
//ищем файл с максимальным размером
for (let file of files) {
const path = `${outputDir}/${file.path}`;
fileList.push(path);
fileList.push(file.path);
if (file.data.length > max) {
sel = path;
sel = `${outputDir}/${file.path}`;
max = file.data.length;
}
}