src/Someline/Image/SomelineImageService.php
public static function autoCreateDirectory($path_name)
    {
        // check directory
        if (!File::exists(dirname($path_name))) {
            $isMadeDir = mkdir(dirname($path_name), 0777, true);
            if (!$isMadeDir) {
                return false;
            }
        }
        return true;
    }
public static function autoCreateDirectory($path_name)
    {
        // check directory
        if (!File::exists(dirname($path_name))) {
            $isMadeDir = mkdir(dirname($path_name), 0777, true);
            if (!$isMadeDir) {
                return false;
            }
        }
        return true;
    }
public static function autoCreateDirectory ( $ path_name ) { // check directory if ( ! File :: exists ( dirname ( $ path_name ) ) ) { $ isMadeDir = mkdir ( dirname ( $ path_name ) , 0777 , true ) ; if ( ! $ isMadeDir ) { return false ; } } return true ; }
auto create directory if not exists
@param $path_name
@return bool
auto create directory if not exists