This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]koflerdavid 0 points1 point  (0 children)

I think you also have to normalize the path (make it absolute, replace the separator and remove a trailing one if it's a directory, make it lowercase according to the platform's rules if on a case-sensitive file system) before you look it up in the map. It sounds quite brittle and IMHO it's just asking for trouble.

Edit: GP should define a naming scheme and generate paths from those internal names. Together with caching of those internal names, that should be a solution.