SceneGate / Yarhl

Framework for the implementation of format converters like game assets or media files
https://scenegate.github.io/Yarhl/
MIT License
60 stars 10 forks source link

Fix NodeFactory.FromDirectory #188

Closed Kaplas80 closed 2 years ago

Kaplas80 commented 2 years ago

Description

Using NodeFactory.FromDirectory to create a node with filter and name when the path passed as argument ended with a DirectorySeparatorChar, inserted wrong names in children nodes.

I have added the code to remove the last separator in a similar way done in the other FromDirectory overloads.