|
@@ -202,7 +202,7 @@ export class GrowiPluginService implements IGrowiPluginService {
|
|
|
private async unzip(zipFilePath: fs.PathLike, destPath: fs.PathLike): Promise<void> {
|
|
private async unzip(zipFilePath: fs.PathLike, destPath: fs.PathLike): Promise<void> {
|
|
|
try {
|
|
try {
|
|
|
const stream = fs.createReadStream(zipFilePath);
|
|
const stream = fs.createReadStream(zipFilePath);
|
|
|
- const unzipFileStream = stream.pipe(unzipStream.Extract({ path: destPath }));
|
|
|
|
|
|
|
+ const unzipFileStream = stream.pipe(unzipStream.Extract({ path: destPath.toString() }));
|
|
|
|
|
|
|
|
await streamToPromise(unzipFileStream);
|
|
await streamToPromise(unzipFileStream);
|
|
|
}
|
|
}
|