More robust error-catching. Also, it's better to only create a folder when needed as opposed to deleting it if empty. Minor readability cleanup.
More robust error-catching. Also, it's better to only create a folder when needed as opposed to deleting it if empty. Minor readability cleanup.

bagley/wptool