Bash script to fix Windows home directory permissions

Somehow the permissions on my Windows home directory got messed up so I decided to write a script to fix them.  I am not 100% sure if these are the correct permissions or not.  I used another Windows machine as a reference but my investigation into what the default permissions are supposed to be was not comprehensive so caveat emptor here.

This script however is a good example of how to do this and it can be easily modified.  It uses an array called ignoreDirs to hold directories which are ignored from the main chmod command. The only directory I know of at the moment that has different permissions is AppData.