in reply to checking CHMOD on directories

I'm not sure how you're wanting to use this info in your script, but you may want to check out this.

Joshua