framework/Mvc/Extensions/Ckfinder/lib/core/connector/php/php5/Utils/FileSystem.php
public static function createDirectoryRecursively($dir)
    {
        if (DIRECTORY_SEPARATOR === "\\") {
            $dir = str_replace("/", "\\", $dir);
        }
        else if (DIRECTORY_SEPARATOR === "/") {
            $dir = str_replace("\\", "/", $dir);
        }

        $_config =& CKFinder_Connector_Core_Factory::getInstance("Core_Config");
        if ($perms = $_config->getChmodFolders()) {
            $oldUmask = umask(0);
            $bCreated = @mkdir($dir, $perms, true);
            umask($oldUmask);
        }
        else {
            $bCreated = @mkdir($dir, 0777, true);
        }

        return $bCreated;
    }
public static function createDirectoryRecursively($dir)
    {
        if (DIRECTORY_SEPARATOR === "\\") {
            $dir = str_replace("/", "\\", $dir);
        }
        else if (DIRECTORY_SEPARATOR === "/") {
            $dir = str_replace("\\", "/", $dir);
        }

        $_config =& CKFinder_Connector_Core_Factory::getInstance("Core_Config");
        if ($perms = $_config->getChmodFolders()) {
            $oldUmask = umask(0);
            $bCreated = @mkdir($dir, $perms, true);
            umask($oldUmask);
        }
        else {
            $bCreated = @mkdir($dir, 0777, true);
        }

        return $bCreated;
    }
public static function createDirectoryRecursively ( $ dir ) { if ( DIRECTORY_SEPARATOR === "\\" ) { $ dir = str_replace ( "/" , "\\" , $ dir ) ; } else if ( DIRECTORY_SEPARATOR === "/" ) { $ dir = str_replace ( "\\" , "/" , $ dir ) ; } $ _config = & CKFinder_Connector_Core_Factory :: getInstance ( "Core_Config" ) ; if ( $ perms = $ _config -> getChmodFolders ( ) ) { $ oldUmask = umask ( 0 ) ; $ bCreated = @ mkdir ( $ dir , $ perms , true ) ; umask ( $ oldUmask ) ; } else { $ bCreated = @ mkdir ( $ dir , 0777 , true ) ; } return $ bCreated ; }
Create directory recursively

@access public
@static
@param string $dir
@return boolean
Create directory recursively