<?php
define('ROOT_PATH', 'c:/xampp/htdocs/inveetaire');
$path = ROOT_PATH . '/themes';
echo "Path: $path\n";
echo "is_dir: " . (is_dir($path) ? 'yes' : 'no') . "\n";
echo "DIRECTORY_SEPARATOR: [" . DIRECTORY_SEPARATOR . "]\n";
$entries = scandir($path);
var_dump($entries);
// Try with manifest
$manifest_path = $path . DIRECTORY_SEPARATOR . 'theme-001' . DIRECTORY_SEPARATOR . 'theme.json';
echo "Manifest path: $manifest_path\n";
echo "Manifest exists: " . (file_exists($manifest_path) ? 'yes' : 'no') . "\n";