-
Hello, I came across this project today and it seems great as it supports multiple compression formats. Is there any example you could provide how I could compress all files in a directory via Zip or alternatively via LZMA respectively? This is how I do it with SSArchive right now. logFilePaths is the path of my daily log files, which I'd compress and attach to the email
Can SWCompression do this as well? Many Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hello,
Unfortunately, the answer to this question is no, since neither LZMA compression nor creation of ZIP archives is implemented. Furthermore, even if they were implemented, SWCompression by design (i.e. intentionally) would not interact with the file system directly (as seemingly SSArchive does in your example), so you would have to implement this part of the procedure by yourself.
Some examples of how to implement the interactions with the file system (for the functionality that is currently available in SWCompression) may be found in the "sophisticated example" mentioned in README. |
Beta Was this translation helpful? Give feedback.
Hello,
Unfortunately, the answer to this question is no, since neither LZMA compression nor creation of ZIP archives is implemented. Furthermore, even if they were implemented, SWCompression by design (i.e. intentionally) would not interact with the file system directly (as seemingly SSArchive does in your example), so you would have to implement this part of the procedure by yourself.
Some examples of how to implement the interactions with the file system (for the functionality that is currently available in SWCompress…