mirror of
https://github.com/go-shiori/shiori.git
synced 2025-01-15 12:27:43 +08:00
fix: trying to mkdir over an incorrect data path (#378)
This commit is contained in:
parent
e1e2c7bfd8
commit
560a677f50
1 changed files with 1 additions and 1 deletions
|
@ -91,7 +91,7 @@ func getDataDir(portableMode bool) (string, error) {
|
|||
|
||||
// Try to use platform specific app path
|
||||
userScope := apppaths.NewScope(apppaths.User, "shiori")
|
||||
dataDir, err := userScope.DataPath("shiori.db")
|
||||
dataDir, err := userScope.DataPath("")
|
||||
if err == nil {
|
||||
return dataDir, nil
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue