Question about zip

Yuen Hoe Lim yuenhoe86 at gmail.com
Sun Nov 15 10:06:52 CET 2009


Hi all,

So I've been doing some work with PlasMate's publisher widget, and was
wondering what is the correct way to do a zip (afaik plasmoid packages
are basically zipped archives right?). Right now I'm basically calling
a 'zip -r', my code looks like this:

    QStringList argv("zip");
    argv.append("-r");
    argv.append(targetFile.path());
    argv.append(".");
    KProcess p;
    p.setProgram(argv);
    p.setWorkingDirectory(toExport.path());
    p.execute();

Is this an acceptable approach? In particular does this have
portability issues and such?

Thanks :)
-- 
----
Jason "moofang" Lim Yuen Hoe
http://yuenhoe.co.cc/


More information about the Plasma-devel mailing list