natefinch / atomic

atomic is a go package for atomic file writing
MIT License
198 stars 14 forks source link

No way to control file permissions on created files #7

Open tmm1 opened 5 years ago

tmm1 commented 5 years ago

Since this library uses ioutil.TempFile, all files are created with 0600 permission (https://golang.org/src/io/ioutil/tempfile.go?s=1419:1477#L65)

sdassow commented 2 years ago

Somehow the reference to the new solution in #18 is missing, hence this comment to add it.