mashpie/i18n-node — pull request #59 by tiagoalves (2013-05-15 23:53:52+00:00)
Title: Remove the hard coded permissions of the `locales` directory

When creating the `locales` directory, the mkdir call is made with hard coded permission settings 755. This is also the usual system default when manually creating a directory in the command line. That's because the default `umask` setting is the "equivalent" 0022.

However, having this hard coded, it becomes impossible to have `umask` set to 0002 to create directories with 775 permissions (rwx permissions for the group).

We need automated scripts that belong to the same group as our node user to be able to remove all the folders that are created by the node process. This includes this module's `locales` folder.

If there's no special reason to force permissions 755 for a newly created folder instead of relying on the default system `umask` settings, then it should be removed.