summaryrefslogtreecommitdiffstats
path: root/modules/storage
diff options
context:
space:
mode:
Diffstat (limited to 'modules/storage')
-rw-r--r--modules/storage/local.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/storage/local.go b/modules/storage/local.go
index ca51d26c9a..a6a9d54a8c 100644
--- a/modules/storage/local.go
+++ b/modules/storage/local.go
@@ -129,7 +129,7 @@ func (l *LocalStorage) URL(path, name string) (*url.URL, error) {
// IterateObjects iterates across the objects in the local storage
func (l *LocalStorage) IterateObjects(fn func(path string, obj Object) error) error {
- return filepath.Walk(l.dir, func(path string, info os.FileInfo, err error) error {
+ return filepath.WalkDir(l.dir, func(path string, d os.DirEntry, err error) error {
if err != nil {
return err
}
@@ -141,7 +141,7 @@ func (l *LocalStorage) IterateObjects(fn func(path string, obj Object) error) er
if path == l.dir {
return nil
}
- if info.IsDir() {
+ if d.IsDir() {
return nil
}
relPath, err := filepath.Rel(l.dir, path)