protected function checkMigrationsPath(array $config)
    {
        // Check if $config['migration_path'] is already defined
        $migrationPath = isset($config['migration_path']) ? $config['migration_path'] : false;

        $migrationPath = str_replace('FCPATH', '', $migrationPath);
        // Check if $config['migration_path'] directory is not available yet, create new one
        if ($migrationPath !== false && !is_dir($migrationPath)) {
            mkdir($migrationPath, 0755, true);
        }

        return $migrationPath;
    }
protected function checkMigrationsPath(array $config)
    {
        // Check if $config['migration_path'] is already defined
        $migrationPath = isset($config['migration_path']) ? $config['migration_path'] : false;

        $migrationPath = str_replace('FCPATH', '', $migrationPath);
        // Check if $config['migration_path'] directory is not available yet, create new one
        if ($migrationPath !== false && !is_dir($migrationPath)) {
            mkdir($migrationPath, 0755, true);
        }

        return $migrationPath;
    }
protected function checkMigrationsPath ( array $ config ) { // Check if $config['migration_path'] is already defined $ migrationPath = isset ( $ config [ 'migration_path' ] ) ? $ config [ 'migration_path' ] : false ; $ migrationPath = str_replace ( 'FCPATH' , '' , $ migrationPath ) ; // Check if $config['migration_path'] directory is not available yet, create new one if ( $ migrationPath !== false && ! is_dir ( $ migrationPath ) ) { mkdir ( $ migrationPath , 0755 , true ) ; } return $ migrationPath ; }
Check Application Migrations path, if not available it will create new one

@param  array  $config Migration configuration
@return string
Check Application Migrations path if not available it will create new one