mirror of
https://github.com/Threnklyn/advent-of-code-go.git
synced 2026-05-18 19:13:27 +02:00
file mode
This commit is contained in:
@@ -67,7 +67,7 @@ func GetWithAOCCookie(url string, cookie string) []byte {
|
||||
func WriteToFile(filename string, contents []byte) {
|
||||
MakeDir(filepath.Dir(filename))
|
||||
|
||||
err := ioutil.WriteFile(filename, contents, os.ModePerm)
|
||||
err := ioutil.WriteFile(filename, contents, os.FileMode(0644))
|
||||
if err != nil {
|
||||
panicWrap(err, "writing file")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user