src/Awjudd/AssetProcessor/AssetProcessor.php
private function setupDirectories()
    {
        // Check if the internal directory is present
        if(!file_exists($dir = config('assetprocessor.cache.directory')))
        {
            // It doesn't, so make the folder
            mkdir($dir, 0777, true);
        }

        // Check if the external directory is available
        if(!file_exists($dir = config('assetprocessor.cache.external', config('assetprocessor.cache.directory'))))
        {
            // It doesn't, so make the folder
            mkdir($dir, 0777, true);
        }

        // Check if the external directory is available (CSS)
        if(!file_exists($dir = config('assetprocessor.cache.external', config('assetprocessor.cache.directory')) . '/css'))
        {
            // It doesn't, so make the folder
            mkdir($dir, 0777, true);
        }

        // Check if the external directory is available (JavaScript)
        if(!file_exists($dir = config('assetprocessor.cache.external', config('assetprocessor.cache.directory')) . '/js'))
        {
            // It doesn't, so make the folder
            mkdir($dir, 0777, true);
        }
    }
private function setupDirectories()
    {
        // Check if the internal directory is present
        if(!file_exists($dir = config('assetprocessor.cache.directory')))
        {
            // It doesn't, so make the folder
            mkdir($dir, 0777, true);
        }

        // Check if the external directory is available
        if(!file_exists($dir = config('assetprocessor.cache.external', config('assetprocessor.cache.directory'))))
        {
            // It doesn't, so make the folder
            mkdir($dir, 0777, true);
        }

        // Check if the external directory is available (CSS)
        if(!file_exists($dir = config('assetprocessor.cache.external', config('assetprocessor.cache.directory')) . '/css'))
        {
            // It doesn't, so make the folder
            mkdir($dir, 0777, true);
        }

        // Check if the external directory is available (JavaScript)
        if(!file_exists($dir = config('assetprocessor.cache.external', config('assetprocessor.cache.directory')) . '/js'))
        {
            // It doesn't, so make the folder
            mkdir($dir, 0777, true);
        }
    }
private function setupDirectories ( ) { // Check if the internal directory is present if ( ! file_exists ( $ dir = config ( 'assetprocessor.cache.directory' ) ) ) { // It doesn't, so make the folder mkdir ( $ dir , 0777 , true ) ; } // Check if the external directory is available if ( ! file_exists ( $ dir = config ( 'assetprocessor.cache.external' , config ( 'assetprocessor.cache.directory' ) ) ) ) { // It doesn't, so make the folder mkdir ( $ dir , 0777 , true ) ; } // Check if the external directory is available (CSS) if ( ! file_exists ( $ dir = config ( 'assetprocessor.cache.external' , config ( 'assetprocessor.cache.directory' ) ) . '/css' ) ) { // It doesn't, so make the folder mkdir ( $ dir , 0777 , true ) ; } // Check if the external directory is available (JavaScript) if ( ! file_exists ( $ dir = config ( 'assetprocessor.cache.external' , config ( 'assetprocessor.cache.directory' ) ) . '/js' ) ) { // It doesn't, so make the folder mkdir ( $ dir , 0777 , true ) ; } }
Sets up all of the base directories that the plugin will need to run.

@return void
Sets up all of the base directories that the plugin will need to run .