We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
filepath
path
1 parent b7e3adc commit 5eaf91eCopy full SHA for 5eaf91e
modules/setting/database.go
@@ -9,7 +9,6 @@ import (
9
"net"
10
"net/url"
11
"os"
12
- "path"
13
"path/filepath"
14
"strings"
15
"time"
@@ -117,7 +116,7 @@ func DBConnStr() (string, error) {
117
116
if !EnableSQLite3 {
118
return "", errors.New("this Gitea binary was not built with SQLite3 support")
119
}
120
- if err := os.MkdirAll(path.Dir(Database.Path), os.ModePerm); err != nil {
+ if err := os.MkdirAll(filepath.Dir(Database.Path), os.ModePerm); err != nil {
121
return "", fmt.Errorf("Failed to create directories: %w", err)
122
123
journalMode := ""
0 commit comments