public function downloadFile($path)
	{
		// Download contents of current file
		if (($data = $this->downloadData()) === null) {
			return false;
		}

		// Write contents to specified path
		if (@file_put_contents($path, $data) === false) {
			$this->error = array();
			$this->error['file'] = "Unable to write file '$path'";
			return false;
		}

		return true;
	}
public function downloadFile($path)
	{
		// Download contents of current file
		if (($data = $this->downloadData()) === null) {
			return false;
		}

		// Write contents to specified path
		if (@file_put_contents($path, $data) === false) {
			$this->error = array();
			$this->error['file'] = "Unable to write file '$path'";
			return false;
		}

		return true;
	}
public function downloadFile ( $ path ) { // Download contents of current file if ( ( $ data = $ this -> downloadData ( ) ) === null ) { return false ; } // Write contents to specified path if ( @ file_put_contents ( $ path , $ data ) === false ) { $ this -> error = array ( ) ; $ this -> error [ 'file' ] = "Unable to write file '$path'" ; return false ; } return true ; }
Downloads the current file's contents and writes it to the given path.

@param   string   $path  The file path to write to
@return  boolean         True if path was written successfully
Downloads the current file s contents and writes it to the given path .