Added ofDirectory canRead/Write/Execute functions. Fixed #1669
Merge pull request #2934 from Daandelange/master

Added ofDirectory canRead/Write/Execute functions. Fixed #1669