public static function ValidExtension()
    {
        $dir = self::GetCwd();

        if(
            // Templates
            is_dir($dir . "/templates") &&
            
            // Peg configuration file
            (file_exists($dir . "/peg.conf") || file_exists($dir . "/peg.json"))
        )
        {
            return true;
        }

        return false;
    }
public static function ValidExtension()
    {
        $dir = self::GetCwd();

        if(
            // Templates
            is_dir($dir . "/templates") &&
            
            // Peg configuration file
            (file_exists($dir . "/peg.conf") || file_exists($dir . "/peg.json"))
        )
        {
            return true;
        }

        return false;
    }
public static function ValidExtension ( ) { $ dir = self :: GetCwd ( ) ; if ( // Templates is_dir ( $ dir . "/templates" ) && // Peg configuration file ( file_exists ( $ dir . "/peg.conf" ) || file_exists ( $ dir . "/peg.json" ) ) ) { return true ; } return false ; }
Check if the current directory is of a valid extension.
@return boolean
Check if the current directory is of a valid extension .