[DCOM-240] Dirs only need to be writable, when we are performing a write.

Fixes Ref: http://www.doctrine-project.org/jira/browse/DCOM-240