()
| 10951 | |
| 10952 | // Helper function to normalize file paths for comparison (Docker/server may use leading slash or not) |
| 10953 | function normalizeFilePath(path) { |
| 10954 | if (!path) return ''; |
| 10955 | const normalized = path.replace(/\\/g, '/').toLowerCase().trim(); |
| 10956 | return normalized.replace(/^\/+/, ''); // strip leading slashes so "/3dmodels/..." and "3dmodels/..." match |