fix: trying to mkdir over an incorrect data path (#378)

This commit is contained in:
Felipe Martin Garcia 2022-02-23 19:00:16 +01:00 committed by GitHub
parent e1e2c7bfd8
commit 560a677f50
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -91,7 +91,7 @@ func getDataDir(portableMode bool) (string, error) {
// Try to use platform specific app path // Try to use platform specific app path
userScope := apppaths.NewScope(apppaths.User, "shiori") userScope := apppaths.NewScope(apppaths.User, "shiori")
dataDir, err := userScope.DataPath("shiori.db") dataDir, err := userScope.DataPath("")
if err == nil { if err == nil {
return dataDir, nil return dataDir, nil
} }