-R: check if directory is writable.