fix: show the current used filebrowser.db utils.go

This commit is contained in:
niubility000 2024-02-28 10:40:02 +08:00 committed by GitHub
parent f5c03b6cd7
commit 673a971217
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -100,7 +100,7 @@ func python(fn pythonFunc, cfg pythonConfig) cobraFunc {
} else if !exists && !cfg.noDB && !cfg.allowNoDB {
log.Fatal(absPath + " does not exist. Please run 'filebrowser config init' first.")
} else if !exists && !cfg.noDB {
log.Println("Warning: filebrowser.db can't be found. Initialing in " + strings.TrimRight(absPath, "filebrowser.db"))
log.Println("Warning: filebrowser.db can't be found. Initialing in " + strings.TrimSuffix(absPath, "filebrowser.db"))
}
log.Println("Using database: " + absPath)