18 lines
316 B
Go
18 lines
316 B
Go
|
package main
|
||
|
|
||
|
import (
|
||
|
"batch_op_file/util"
|
||
|
"fmt"
|
||
|
"os"
|
||
|
)
|
||
|
|
||
|
func main() {
|
||
|
var paths []string
|
||
|
rootDir, _ := os.Getwd()
|
||
|
paths, _ = util.GetAllFile(rootDir, paths, []string{".git", ".idea", ".vscode", ".gitignore", ".gitea", ".github", ".golangci.yml", "*.pyc"})
|
||
|
|
||
|
for _, fp := range paths {
|
||
|
fmt.Println(fp)
|
||
|
}
|
||
|
}
|