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

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s