lib/bagit_fetch.php
private function _downloadFile($url, $filename)
    {
        $dirname = dirname($filename);
        if (! is_dir($dirname)) {
            mkdir($dirname, 0777, true);
        }
        saveUrl($url, $filename);
    }
private function _downloadFile($url, $filename)
    {
        $dirname = dirname($filename);
        if (! is_dir($dirname)) {
            mkdir($dirname, 0777, true);
        }
        saveUrl($url, $filename);
    }
private function _downloadFile ( $ url , $ filename ) { $ dirname = dirname ( $ filename ) ; if ( ! is_dir ( $ dirname ) ) { mkdir ( $ dirname , 0777 , true ) ; } saveUrl ( $ url , $ filename ) ; }
This downloads a single file.

@param string $url      The URL to fetch.
@param string $filename The absolute file name to save to.

@return void
This downloads a single file .