We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
filepath
path
1 parent b7e3adc commit 01d3da4Copy full SHA for 01d3da4
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