file mode

This commit is contained in:
Alex Chao
2021-02-03 11:23:20 -05:00
parent 16a564344f
commit 632daf1a20
+1 -1
View File
@@ -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")
}