src/Downloaders/DownloadPackageFactory.php
/**
     * Initialize the directories required for the download
     */
Initialize the directories required for the download
Initialize the directories required for the download
public function initialize()
    {
        if(!is_dir(dirname($this->getDownloadFullPath()))) {
            mkdir(dirname($this->getDownloadFullPath()), 0755, true);
        }
        if(!is_dir($this->getInstallDir())) {
            mkdir($this->getInstallDir(), 0755, true);
        }                        
    }
public function initialize ( ) { if ( ! is_dir ( dirname ( $ this -> getDownloadFullPath ( ) ) ) ) { mkdir ( dirname ( $ this -> getDownloadFullPath ( ) ) , 0755 , true ) ; } if ( ! is_dir ( $ this -> getInstallDir ( ) ) ) { mkdir ( $ this -> getInstallDir ( ) , 0755 , true ) ; } }
Initialize the directories required for the download
Initialize the directories required for the download