mirror of
https://github.com/Eggbertx/gochan.git
synced 2025-08-03 03:36:22 -07:00
Use proper "Go-like" names for file modes
Try to create log dir if it doesn't exist
This commit is contained in:
parent
caea5ee77e
commit
3547b3117e
8 changed files with 26 additions and 23 deletions
|
@ -114,7 +114,7 @@ func (gcfg *GochanConfig) Write() error {
|
|||
// don't try to write anything if we're doing a test
|
||||
return nil
|
||||
}
|
||||
return os.WriteFile(gcfg.jsonLocation, str, GC_FILE_MODE)
|
||||
return os.WriteFile(gcfg.jsonLocation, str, NormalFileMode)
|
||||
}
|
||||
|
||||
type SQLConfig struct {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue