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
9afece26a8
kutils: implement operator equal for KArchiveEntry
...
required to check if QList<KArchiveEntry> contains KArchiveEntry for example
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-06 21:31:25 +03:00
Ivailo Monev
720e62b6f1
kutils: check if the leading directory is writable from KArchive constructor
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-06 19:58:29 +03:00
Ivailo Monev
95162630d4
kutils: process events while iterating over the paths that need to be added in KArchive::add()
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-06 22:28:16 +03:00
Ivailo Monev
6d66041086
kutils: zero-initialize the readlink() buffer in KArchive::add()
...
fixes adding to archive in case of symlink
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-06 22:22:52 +03:00
Ivailo Monev
16ebe8408f
kutils: copy-pasta typo
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-06 22:21:40 +03:00
Ivailo Monev
779bb0e9ab
kutils: KArchive documentation update
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-06 21:33:45 +03:00
Ivailo Monev
14f75001ba
kutils: set the passphase callback to dummy one for now
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-06 21:09:54 +03:00
Ivailo Monev
2a0f817096
kutils: build fix for the case when strmode() is available
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-06 21:07:26 +03:00
Ivailo Monev
587259b61f
kutils: save errno value before calling functions that may change it in KArchive::add()
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-06 20:31:54 +03:00
Ivailo Monev
2170542166
kutils: define PATH_MAX to _POSIX_PATH_MAX if it is not defined
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-06 20:30:50 +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