Commit graph

12 commits

Author SHA1 Message Date
Ivailo Monev
5613e5483c generic: remove redundant build varibles
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-17 20:25:52 +03:00
Ivailo Monev
c29fc4dca1 kutils: test KCompressor and KDecompressor with empty data
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-24 12:59:19 +02:00
Ivailo Monev
4c16e7c0d5 kutils: recursively remove/extract when paths contain directory
this also makes it match the behaviour of KArchive::add() which recurses
into directories and adds the files that the specified directory holds

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-24 01:56:21 +02:00
Ivailo Monev
4cffecc6af kutils: verify the KArchive progress signal values in its test case
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-27 09:49:28 +03:00
Ivailo Monev
3f692a32f9 kutils: implement progress signal for KArchive
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-27 03:47:53 +03:00
Ivailo Monev
60e94313ef kdecore: move KCompressor and KDecompressor to karchive library
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-18 04:40:28 +03:00
Ivailo Monev
78f4dd9aee kutils: do not include the libarchive function name in error strings
for consistency since some errors strings are not based on libarchive
error codes

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-15 20:06:36 +03:00
Ivailo Monev
b3a991b9d6 kutils: test listing and extraction of password-protected archive
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-09 18:04:16 +03:00
Ivailo Monev
e82f83a22a kutils: implement methods for checking if archive requires passphrase and set one for reading and writing
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-09 15:36:08 +03:00
Ivailo Monev
8009f7d734 kutils: remove extra dot in tmpName() function
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-09 06:02:01 +03:00
Ivailo Monev
0e3275dc35 kutils: make use of the new KTemporaryFile::filePath() method
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-07 05:22:41 +03:00
Ivailo Monev
3ab3f3b47f kutils: new karchive library to replace KZip and KTar
it has to solve a few problems like:
1. blocking the current thread while listing, extracting or adding to
   archive
2. lack of support for some archive formats such as 7-zip in the
   previously available classes for dealing with archive
3. progress and error reporting

a KArchiveJob class may have to be implemented to solve the above
issues. the API is just as frustrating to use as KTar and KZip right now
tho and I am not happy with that but the class itself is a 3-rd rewrite
of what was once Python module, plugin for another project and now used
as base in library.

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-06 16:53:55 +03:00