mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-03 04:10:20 +08:00
feat: skip node_modules folder when generating i18n (#3862)
This commit is contained in:
@ -84,6 +84,10 @@ func getAllFilePathsInFolder(folder string, fileSuffix string) []string {
|
||||
return err
|
||||
}
|
||||
|
||||
if strings.HasSuffix(path, "node_modules") {
|
||||
return filepath.SkipDir
|
||||
}
|
||||
|
||||
if !strings.HasSuffix(info.Name(), fileSuffix) {
|
||||
return nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user