diff --git a/doc/changelog.d/2101.fixed.md b/doc/changelog.d/2101.fixed.md new file mode 100644 index 0000000000..3fa1276d4a --- /dev/null +++ b/doc/changelog.d/2101.fixed.md @@ -0,0 +1 @@ +Change ``iterdir()`` for ``rglob('*')`` \ No newline at end of file diff --git a/src/ansys/geometry/core/modeler.py b/src/ansys/geometry/core/modeler.py index 03ce400ded..ec849cbb62 100644 --- a/src/ansys/geometry/core/modeler.py +++ b/src/ansys/geometry/core/modeler.py @@ -442,7 +442,7 @@ def open_file( ext in str(file_path) for ext in [".CATProduct", ".asm", ".solution", ".sldasm"] ): dir = fp_path.parent - for file in dir.iterdir(): + for file in dir.rglob("*"): full_path = file.resolve() if full_path != fp_path: if full_path.stat().st_size < pygeom_defaults.MAX_MESSAGE_LENGTH: