Closed fengmk2 closed 6 years ago
对路径进行容错处理,不是所有 zip 文件都很规范,有些程序生成的 zip 文件路径是绝对路径,但是其实能够解析出来的,自动按相对路径处理即可。
Merging #10 into master will increase coverage by
0.09%
. The diff coverage is100%
.
@@ Coverage Diff @@
## master #10 +/- ##
==========================================
+ Coverage 98% 98.09% +0.09%
==========================================
Files 18 19 +1
Lines 501 525 +24
==========================================
+ Hits 491 515 +24
Misses 10 10
Impacted Files | Coverage Δ | |
---|---|---|
lib/base_stream.js | 87.5% <100%> (+20.83%) |
:arrow_up: |
lib/utils.js | 97.16% <100%> (+0.39%) |
:arrow_up: |
lib/base_write_stream.js | 100% <100%> (ø) |
|
lib/zip/uncompress_stream.js | 98.07% <100%> (-0.04%) |
:arrow_down: |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 90c8eda...a37c73c. Read the comment docs.
try to transfer absolute and relative path to an validate filepath.
e.g.: