/** * Add a single file to the archive, and print out the name if verbose option is set. * * @param io.Path $target Zarh in archive * @param io.Path $source Path to source file * @return void */ protected function add($target, $source) { $name = $target->toString('/'); $this->options & Options::VERBOSE && $this->out->writeLine($name); $this->archive->addFile($name, $source->asFile()); }