src/Webiny/BackupService/Lib/Compress.php
public function addSources(array $sources)
    {
        foreach ($sources as $s) {
            if (!file_exists($s)) {
                throw new \Exception(sprintf('Unable to compress %s because the destination doesn\'t exist.', $s));
            }
            $this->sources[] = $s;
        }
    }
public function addSources(array $sources)
    {
        foreach ($sources as $s) {
            if (!file_exists($s)) {
                throw new \Exception(sprintf('Unable to compress %s because the destination doesn\'t exist.', $s));
            }
            $this->sources[] = $s;
        }
    }
public function addSources ( array $ sources ) { foreach ( $ sources as $ s ) { if ( ! file_exists ( $ s ) ) { throw new \ Exception ( sprintf ( 'Unable to compress %s because the destination doesn\'t exist.' , $ s ) ) ; } $ this -> sources [ ] = $ s ; } }
Add one or more file or folders to the archive.

@param array $sources

@throws \Exception
Add one or more file or folders to the archive .