I decided to give this script a shot and it looks like it doesn't work if you have subfolders that contain spaces.