Now deals with ownCloud directory permissions.