src/Core/TempFolder.php
public static function getTempFolder($base)
    {
        $parent = static::getTempParentFolder($base);

        // The actual temp folder is a subfolder of getTempParentFolder(), named by username
        $subfolder = Path::join($parent, static::getTempFolderUsername());

        if (!@file_exists($subfolder)) {
            mkdir($subfolder);
        }

        return $subfolder;
    }
public static function getTempFolder($base)
    {
        $parent = static::getTempParentFolder($base);

        // The actual temp folder is a subfolder of getTempParentFolder(), named by username
        $subfolder = Path::join($parent, static::getTempFolderUsername());

        if (!@file_exists($subfolder)) {
            mkdir($subfolder);
        }

        return $subfolder;
    }
public static function getTempFolder ( $ base ) { $ parent = static :: getTempParentFolder ( $ base ) ; // The actual temp folder is a subfolder of getTempParentFolder(), named by username $ subfolder = Path :: join ( $ parent , static :: getTempFolderUsername ( ) ) ; if ( ! @ file_exists ( $ subfolder ) ) { mkdir ( $ subfolder ) ; } return $ subfolder ; }
Returns the temporary folder path that silverstripe should use for its cache files.

@param string $base The base path to use for determining the temporary path
@return string Path to temp
Returns the temporary folder path that silverstripe should use for its cache files .