protected $zip;
protected $workingDir;
protected $whole = true;
+ protected $_clean = true;
public $cleanOnDestruct = true;
public static function package($book_id, $version, $zip = true) {
}
public function __construct($book_id, $vdir = null, $whole = true) {
+
+ $this->_clean = (null === $vdir);
global $core;
$this->book_id = $book_id;
}
protected function cleanVdir() {
+ if (!$this->_clean) {
+ return;
+ }
if (file_exists($this->vdir)) {
-
// Suppression du répertoire si il existe
$rm = new cubeCommandLine('rm');
$rm->setArg('r');