public function createArchive($tree, $output, $format = 'zip') { $fs = new Filesystem(); $fs->mkdir(dirname($output)); $this->getClient()->run($this, "archive --format={$format} --output='{$output}' {$tree}"); }