You have basically the same problem as in Parameters and Dashes. Maybe the problem is not in your code but in your data?
Have you made really, really certain that the name is My-Folder and not My—Folder or My&ldash;Folder? If the dash is not a minus sign but a &ldash; or — weird things might happen.
So far, you haven't shown a self-contained program that exhibits the problem you describe. Please help us help you better by showing a short, self-contained program that takes no input data and produces the results you describe.
In reply to Re: FileParse Issue
by Corion
in thread FileParse Issue
by Elegant
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |