github.com/gogf/gf@v1.16.9/.example/os/gfile/gfile_scan.go (about)

     1  package main
     2  
     3  import (
     4  	"github.com/gogf/gf/os/gfile"
     5  	"github.com/gogf/gf/util/gutil"
     6  )
     7  
     8  func main() {
     9  	gutil.Dump(gfile.ScanDir("/Users/john/Documents", "*.*"))
    10  	gutil.Dump(gfile.ScanDir("/home/john/temp/newproject", "*", true))
    11  }