lib/bagit_fetch.php
public function download()
    {
        $basedir = dirname($this->fileName);
        foreach ($this->data as $fetch) {
            $filename = $basedir . '/' . $fetch['filename'];
            if (! file_exists($filename)) {
                $this->_downloadFile($fetch['url'], $filename);
            }
        }
    }
public function download()
    {
        $basedir = dirname($this->fileName);
        foreach ($this->data as $fetch) {
            $filename = $basedir . '/' . $fetch['filename'];
            if (! file_exists($filename)) {
                $this->_downloadFile($fetch['url'], $filename);
            }
        }
    }
public function download ( ) { $ basedir = dirname ( $ this -> fileName ) ; foreach ( $ this -> data as $ fetch ) { $ filename = $ basedir . '/' . $ fetch [ 'filename' ] ; if ( ! file_exists ( $ filename ) ) { $ this -> _downloadFile ( $ fetch [ 'url' ] , $ filename ) ; } } }
This downloads the files in the fetch information that aren't on the
file system.

@return void
This downloads the files in the fetch information that aren t on the file system .