+++ /dev/null
-<?php
-
-namespace Cubist\Util\CommandLine;
-
-use Cubist\Util\CommandLine;
-
-class Inkscape extends CommandLine
-{
-
- public function __construct($output = null, $error = true)
- {
- parent::__construct('inkscape', $output, $error);
- }
-
- public function openFileAndApplyVerbs($file, $verbs = [])
- {
- $this->setArg('f', $file);
- foreach ($verbs as $verb) {
- $this->setArg('verb', $verb);
- }
- }
-
- public function strokeToPath($file)
- {
- $this->openFileAndApplyVerbs($file, ['EditSelectAll', 'StrokeToPath', 'FileSave', 'FileQuit']);
- }
-}
\ No newline at end of file
$cl->setArg('j');
}
$cl->setArg(null, $zip);
+ $cl->setArg('x', '"__MACOSX/*"');
$cl->execute();
-
if (stristr($cl->getOutput(), 'zipfile corrupt')) {
$corrupted = $zip . '.corrupted';
rename($zip, $corrupted);