|
|
@ -6,7 +6,7 @@ module.exports = function (docxFile, image) { |
|
|
|
return new Promise((resolve, reject) => { |
|
|
|
return new Promise((resolve, reject) => { |
|
|
|
let zipName = docxFile.slice(0, -5) + '.zip' |
|
|
|
let zipName = docxFile.slice(0, -5) + '.zip' |
|
|
|
let filePath = path.join(__dirname + '/../public/files') |
|
|
|
let filePath = path.join(__dirname + '/../public/files') |
|
|
|
exec('mkdir -p word/media') |
|
|
|
exec('mkdir -p word/media' , {cwd: filePath}) |
|
|
|
.then(function (result) { |
|
|
|
.then(function (result) { |
|
|
|
|
|
|
|
|
|
|
|
return Promise.all([ |
|
|
|
return Promise.all([ |
|
|
|