compressing icon indicating copy to clipboard operation
compressing copied to clipboard

Everything you need for compressing and uncompressing

Results 60 compressing issues
Sort by recently updated
recently updated
newest added

在electron中解压zip文件时报错:Uncaught TypeError: __webpack_require__(...) is not a function,有人遇到过吗?

pack.zip是axios请求createWriteStream下载而来的 ``` compressing.tgz.uncompress(path.join(__dirname, '../../pack.zip'), 'package').then(res => { console.log('uncompress success') // 解压之后,重启应用即可 app.relaunch() app.exit(0) }).catch(err => { // 记录错误日志 console.log(`uncompress error: ${err.toString()}`) }) ``` 启动后报了这个问题

代码如下: ``` compress() { const compressing = require('compressing'); // 解压缩 compressing.zip.uncompress('build.zip', 'nodejs-compressing-demo3') .then(() => { console.log('success'); }) .catch(err => { console.error(err); }); }, ``` 测试zip文件中包含有中文文件名的文件时候,解压出来的文件名是乱码。

Should be `Illegal` https://github.com/node-modules/compressing/blob/master/lib/utils.js#L16

![image](https://user-images.githubusercontent.com/16414277/88244603-dc4f5900-ccc6-11ea-907a-35767873dd7c.png)

pack.tgz pack/ pack/test.log pack/test/ pack/test/test.log=>../test.log 如上 pack/test/test.log为软连接文件 解压后 会变成空目录 目录名为test.log

可以压缩文件时得到的压缩文件后没有顶层目录么,就是说我addEntry 加入多少个文件解压出来就是这些,我现在用每次都有一个顶层目录

exports.makeUncompressFn = StreamClass => { return (source, destDir, opts) => { 。。。 return new Promise((resolve, reject) => { mkdirp(destDir, err => { 。。。 同上,destDir传入已有路径directory,依然还要mkdirp。如果机器不允许服务mkdir 会有问题

### compressing.tgz....a dir which contain dir\a.js, dir\b.js; then upload this tgz to linux, and run tar zxvf xx.tgz, the result is unexpected( dir\a.js , dir\b.js ); #### I think the...