summaryrefslogtreecommitdiffstats
path: root/modules/options
diff options
context:
space:
mode:
Diffstat (limited to 'modules/options')
-rw-r--r--modules/options/dynamic.go6
-rw-r--r--modules/options/static.go4
2 files changed, 3 insertions, 7 deletions
diff --git a/modules/options/dynamic.go b/modules/options/dynamic.go
index 060ca12bb0..ffb89df882 100644
--- a/modules/options/dynamic.go
+++ b/modules/options/dynamic.go
@@ -14,8 +14,6 @@ import (
"code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/setting"
"code.gitea.io/gitea/modules/util"
-
- "github.com/unknwon/com"
)
var (
@@ -39,7 +37,7 @@ func Dir(name string) ([]string, error) {
return []string{}, fmt.Errorf("Unabe to check if custom directory %s is a directory. %v", customDir, err)
}
if isDir {
- files, err := com.StatDir(customDir, true)
+ files, err := util.StatDir(customDir, true)
if err != nil {
return []string{}, fmt.Errorf("Failed to read custom directory. %v", err)
@@ -55,7 +53,7 @@ func Dir(name string) ([]string, error) {
return []string{}, fmt.Errorf("Unabe to check if static directory %s is a directory. %v", staticDir, err)
}
if isDir {
- files, err := com.StatDir(staticDir, true)
+ files, err := util.StatDir(staticDir, true)
if err != nil {
return []string{}, fmt.Errorf("Failed to read static directory. %v", err)
diff --git a/modules/options/static.go b/modules/options/static.go
index ff1e6b2332..5f4ffdda78 100644
--- a/modules/options/static.go
+++ b/modules/options/static.go
@@ -14,8 +14,6 @@ import (
"code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/setting"
"code.gitea.io/gitea/modules/util"
-
- "github.com/unknwon/com"
)
var (
@@ -38,7 +36,7 @@ func Dir(name string) ([]string, error) {
return []string{}, fmt.Errorf("Failed to check if custom directory %s is a directory. %v", err)
}
if isDir {
- files, err := com.StatDir(customDir, true)
+ files, err := util.StatDir(customDir, true)
if err != nil {
return []string{}, fmt.Errorf("Failed to read custom directory. %v", err)