framework/Fs/Helpers.php
public static function mkDir($dirName, $mode = 0777)
    {
        if (file_exists($dirName) && is_dir($dirName)) {
            return @chmod($dirName, $mode);
        }
        $result = @mkdir($dirName, $mode, true);
        if (false === $result) {
            throw new Exception('Can not create dir ' . $dirName);
        }
        return true;
    }
public static function mkDir($dirName, $mode = 0777)
    {
        if (file_exists($dirName) && is_dir($dirName)) {
            return @chmod($dirName, $mode);
        }
        $result = @mkdir($dirName, $mode, true);
        if (false === $result) {
            throw new Exception('Can not create dir ' . $dirName);
        }
        return true;
    }
public static function mkDir ( $ dirName , $ mode = 0777 ) { if ( file_exists ( $ dirName ) && is_dir ( $ dirName ) ) { return @ chmod ( $ dirName , $ mode ) ; } $ result = @ mkdir ( $ dirName , $ mode , true ) ; if ( false === $ result ) { throw new Exception ( 'Can not create dir ' . $ dirName ) ; } return true ; }
Creates directory by absolute path
@param string $dirName Directory path
@param int $mode Access mode
@return bool
@throws \T4\Fs\Exception
Creates directory by absolute path