CloudConvert\Process::downloadAll PHP Method

downloadAll() public method

Download all output process files from API
public downloadAll ( string $directory = null ) : Process
$directory string Local directory the files should be downloaded to
return Process
    public function downloadAll($directory = null)
    {
        if (!isset($this->output->files)) {
            // the are not multiple output files -> do normal downloader
            return $this->download($directory);
        }
        foreach ($this->output->files as $file) {
            $this->download($directory, $file);
        }
        return $this;
    }