I was copying a bunch of fixtures into a temp directory one day, and then I kept getting weird return codes (error code 126 wat) when I tried to call executable files in those copied fixtures. I found out that the copied files were no longer 0777, but 0666 (the default mask for files).
I was copying a bunch of fixtures into a temp directory one day, and then I kept getting weird return codes (
error code 126
wat) when I tried to call executable files in those copied fixtures. I found out that the copied files were no longer0777
, but0666
(the default mask for files).Sacré bleu!
Turns out
fs.createWriteStream()
has amode
option that we should probably use.Related to #34, but not a complete solution.