mirror of
https://github.com/beego/bee.git
synced 2024-12-23 01:30:50 +00:00
skip start with . dir
This commit is contained in:
parent
7342e701e5
commit
f0da7795a4
6
fix.go
6
fix.go
@ -29,8 +29,14 @@ func runFix(cmd *Command, args []string) int {
|
||||
}
|
||||
filepath.Walk(dir, func(path string, info os.FileInfo, err error) error {
|
||||
if info.IsDir() {
|
||||
if strings.HasPrefix(info.Name(), ".") {
|
||||
return filepath.SkipDir
|
||||
}
|
||||
return nil
|
||||
}
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
ColorLog("%s\n", path)
|
||||
err = fixFile(path)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user