Skip to content

Commit

Permalink
added prints to check error in Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
eranturgeman committed Sep 16, 2024
1 parent 7e359be commit 1870be4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions utils/techutils/techutils.go
Original file line number Diff line number Diff line change
Expand Up @@ -510,9 +510,14 @@ func hasCompletePathPrefix(root, wd string) bool {
if !strings.HasPrefix(root, wd) {
return false
}
log.Info(fmt.Sprintf("ERAN TEST - root path: %s", root))
log.Info(fmt.Sprintf("ERAN TEST - wd path: %s", root))
rootParts := strings.Split(root, string(filepath.Separator))
wdParts := strings.Split(wd, string(filepath.Separator))
log.Info(fmt.Sprintf("ERAN TEST - root slice: %s", rootParts))
log.Info(fmt.Sprintf("ERAN TEST - wd parts: %s", wdParts))
idxToCheck := len(wdParts) - 1
log.Info(fmt.Sprintf("ERAN TEST - idx to check: %d", idxToCheck))
return rootParts[idxToCheck] == wdParts[idxToCheck]
}

Expand Down

0 comments on commit 1870be4

Please sign in to comment.