jnicklas/carrierwave — pull request #707 by fbuenemann (2012-04-18 01:27:10+00:00)
Title: Support setting permissions of created directories

This add a new uploader configuration option :directory_permissions
which allows to set the permissions of directories created by the
uploader.

This does NOT modify the permissions of existing directories cause
that could be potentially harmful.

I've also added and fixed relevant specs.

I needed this for a project were both a rails app and a daemon are using the same uploader but are running under different users of the same group.

The changes are a bit too much repetitive for my taste, so I'm open for suggestions on how to do it better without breaking backwards compatibility.