Comments (6)
can you show some sample code? I use this lib, but didn't have this problem.
from bit7z.
ftp://ftp.unibe.ch/aiub/CODE/COPG1420.17I.Z, can you try this file? Thanks!
from bit7z.
no i cann't download it. you can try www.codeshare.io, it is a good code share website.
from bit7z.
maybe this filename has two dots?
you can delete one dot, and try again.
from bit7z.
Hi everyone!
The problem is simply this: the Z format (like bzip2 and unlike gzip) doesn't store the name of the original file in the archive (as you may know, all Z, bzip2 and gzip allow compression of only a single file!).
This means that, when extracting a .Z archive, 7-zip (and then bit7z) doesn't know which name give to the extracted file! Now, the 7-zip File Manager handles this situation by giving to the extracted file the same name of the archive file, but without the archive extension (e.g. example.jpg.Z
will be extracted as example.jpg
, as well as example.Z
will be extracted as example
).
However, bit7z was initially based on the sample source code Client7z.cpp of 7-zip , which instead uses that string, "[Content]", as a placeholder for the name of the extracted file.
Until now I was more interested in solving other issues, so I didn't change that behavior.
I plan to solve this issue in the next milestone v2.2, implementing the same behavior of 7-zip File Manager.
from bit7z.
Thank you! Look forward to the next version!
from bit7z.
Related Issues (20)
- [Feature Request]: Can we preview files layer by layer like zlib HOT 3
- [Bug]: Unable to properly decompress and preview the format of tar.bz2 HOT 2
- [Bug]: HOT 6
- [Bug]: Split Error HOT 5
- [Feature Request]: Suggestions for Decompressing Callback Logic HOT 1
- [Bug]: Folder name with some non-ASCII characters are not extracted correctly HOT 21
- [Feature Request]: Adding a function to determine whether the metadata is encrypted HOT 2
- [Feature Request]: Change the definition of `BIT7Z_STRING` HOT 2
- Python wrapper
- [Bug]: bit7z doesn't support UTF-8 for zip filenames under Windows HOT 11
- [Bug]: On Windows narrow returns empty strings for items HOT 3
- [Bug]: MSVC2015 build failed with BIT7Z_AUTO_FORMAT HOT 2
- [Feature Request]: how ot set AES-128,AES-256 encrypted HOT 3
- [Bug]: Incorrect display and decompression of compressed file name HOT 4
- [Feature Request]: RenameOutput HOT 2
- [Feature Request]: custom suffix format HOT 1
- [Bug]: Issues regarding the Fat32 and Exfat file systems HOT 8
- [Bug]: Errors related to file compression HOT 4
- [Feature Request]: Can you provide a method for setting the file time HOT 1
- [build-error]: Failed to open the archive file: No such process HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bit7z.