skip file if its not starting with gluon
This commit is contained in:
parent
13bc0dad2e
commit
685f80988e
@ -37,6 +37,10 @@ func split_filenames(files []fs.FileInfo, dir string) []Files {
|
||||
for i := range files {
|
||||
current_name := files[i].Name()
|
||||
split := strings.Split(current_name, "-")
|
||||
if split[0] != "gluon" {
|
||||
fmt.Println("skipping ", current_name)
|
||||
continue
|
||||
}
|
||||
split_name := len(split) - 1
|
||||
// Routername
|
||||
router_name := strings.Join(split[5:split_name], "-")
|
||||
|
Loading…
Reference in New Issue
Block a user