You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			| 
				
					
						 | 
			2 years ago | |
|---|---|---|
| .. | ||
| testdata | 2 years ago | |
| README.md | 2 years ago | |
| config.go | 2 years ago | |
| elem.go | 2 years ago | |
| finder.go | 2 years ago | |
| finder_test.go | 2 years ago | |
| matcher.go | 2 years ago | |
| matchers.go | 2 years ago | |
| matchers_test.go | 2 years ago | |
		
			
				
				README.md
			
		
		
			
			
		
	
	finder
finder provide a finding tool for find files or dirs, and with some built-in matchers.
Usage
package main
import (
	"git.noahlan.cn/noahlan/ntool/nfs/finder"
)
func main() {
	ff := finder.NewFinder()
	ff.AddScan("/tmp", "/usr/local", "/usr/local/share")
	ff.ExcludeDir("abc", "def").ExcludeFile("*.log", "*.tmp")
	//ss := ff.FindPaths()
	//dump.P(ss)
}