Skip to content

Commit 9d8ab22

Browse files
committed
remove debug code
1 parent 5e7f15d commit 9d8ab22

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

utils.go

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -68,38 +68,23 @@ func MecchiFolderExists() LoaderResult[string] {
6868
}
6969
}
7070

71-
func containsFile(folderPath string, targetFile string) bool {
72-
filePath := filepath.Join(folderPath, targetFile)
73-
_, err := os.Stat(filePath)
74-
return err == nil
75-
}
76-
7771
func FindMecchiDirectory(rootPath string) (string, error) {
7872
targetFolder := "src"
7973
targetFile := "mecchi.py"
8074

8175
folders, err := os.ReadDir(rootPath)
8276

83-
for _, folder := range folders {
84-
if folder.IsDir() {
85-
fmt.Println(folder.Name())
86-
}
87-
}
88-
8977
if err != nil {
90-
fmt.Printf(err.Error())
9178
return "", err
9279
}
9380

9481
for _, folder := range folders {
9582
if folder.IsDir() {
9683
subfolderPath := filepath.Join(rootPath, folder.Name())
9784
srcFilePath := filepath.Join(subfolderPath, targetFolder, targetFile)
98-
fmt.Println(srcFilePath)
9985

10086
_, err := os.Stat(srcFilePath)
10187
if err == nil {
102-
fmt.Println("found " + subfolderPath)
10388
return subfolderPath, nil
10489
}
10590

0 commit comments

Comments
 (0)