Allow the user to pass an optional filepermissions octal parameter to the file consumer, which will be used instead of 0777 on the chmod().
Merge pull request #1 from xenph/add-filepermission-option

Add a file permission option.