Quick problem:
It doesn't accept any directories that have spaces in them. Is there a workaround to this or am I just going to have to suck it up and rename my folders? (they're game titles, so I'd like to keep the spacing if possible)
edit: Nevermind, found a fix by putting "IFS=$'\n'" before the loop.