Files
IfcOpenShell/src/ifcparse
Dion Moult ec210a87db ifcparse: use std::filesystem in guess_file_type()
The stat()-based path helpers were added in 573e53ebf as a speculative
workaround for #7131 ("Ugly workarounds to not depend on
std::filesystem"). That issue turned out to be a hardcoded schema list
missing HEADER_SECTION_SCHEMA and was fixed separately.

Since the plug-in architecture landed, libIfcParse already depends on
std::filesystem: schema.h exports schema_plugin_directory() returning a
std::filesystem::path, and plugin.cpp uses it throughout. The build also
mandates C++17. The workaround therefore no longer avoids anything and
its comment is misleading.

Restore the std::filesystem version, using the error_code overloads so
inaccessible paths are still reported as "not there" rather than
throwing, and route the path through ifcopenshell::path::from_utf8 so
non-ASCII paths work on Windows, as file_reader.cpp already does.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WcUNL8YygRrNC5KpxELMHs
2026-09-14 09:18:14 +02:00
..
2026-08-19 20:17:51 +05:00
2026-03-31 18:23:13 +02:00
2026-08-08 15:37:53 +02:00
2026-07-09 22:01:21 +02:00
2024-06-27 11:49:12 +10:00
2026-03-31 15:32:36 +02:00
2026-03-31 18:23:13 +02:00
2026-03-31 15:32:36 +02:00
2026-08-08 07:42:45 +02:00
2026-08-08 07:42:45 +02:00
2026-08-19 20:17:50 +05:00
2026-08-09 09:04:28 +02:00
2026-06-12 11:04:18 +02:00
2026-03-31 18:23:13 +02:00
2026-08-22 13:12:36 +02:00
2026-03-31 18:23:13 +02:00
2026-08-08 17:08:26 +02:00