mirror of
https://github.com/HChaZZY/alist.git
synced 2025-12-23 18:47:03 +08:00
feat: add type to fs read api
This commit is contained in:
@@ -21,7 +21,7 @@ func InitConfig() {
|
||||
log.Fatalf("failed to create config file: %+v", err)
|
||||
}
|
||||
conf.Conf = conf.DefaultConfig()
|
||||
if !utils.WriteToJson(flags.Config, conf.Conf) {
|
||||
if !utils.WriteJsonToFile(flags.Config, conf.Conf) {
|
||||
log.Fatalf("failed to create default config file")
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user