From 3952d74f877de6ecf93974559d36ce981f5e0306 Mon Sep 17 00:00:00 2001 From: John Date: Wed, 2 Sep 2020 21:36:21 +0800 Subject: [PATCH] up --- os/gfile/gfile_scan.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/os/gfile/gfile_scan.go b/os/gfile/gfile_scan.go index ebb98441a..fb21fac37 100644 --- a/os/gfile/gfile_scan.go +++ b/os/gfile/gfile_scan.go @@ -7,6 +7,7 @@ package gfile import ( + "fmt" "github.com/gogf/gf/errors/gerror" "github.com/gogf/gf/text/gstr" "os" @@ -104,6 +105,7 @@ func ScanDirFile(path string, pattern string, recursive ...bool) ([]string, erro // the and its sub-folders. It ignores the sub-file path if returns an empty // string, or else it appends the sub-file path to result slice. func doScanDir(depth int, path string, pattern string, recursive bool, handler func(path string) string) ([]string, error) { + fmt.Println("doScanDir:", path) if depth >= gMAX_SCAN_DEPTH { return nil, gerror.Newf("directory scanning exceeds max recursive depth: %d", gMAX_SCAN_DEPTH) }