Path Shortener

I’ve recently been looking at some of the new web development tools like NodeJS, NPM, Yeoman and others. I have a blog post coming on that. However, I’ve discovered a problem, and I’m not the first.

I used Yeoman to create an Angular project. However NPM has an issue on Windows, it creates a folder structure that exceeds Windows maximum length. One of the issues is that you can’t delete the folder structure without a lot of manual effort.

After the second time of having to do this by hand, my developer’s laziness kicked in and I automated it.

I’ve written a little Windows Form app which recurses a folder structure and renames each folder to a single character. This should shorten the path enough to be able to delete it.

The code is on GitHub