Closed dennwc closed 1 year ago
With certain yaegi configuration on Windows, the loop in previousRoot can be infinite, because it fails to recognize driver letters as root.
previousRoot
This change adds a few more safeguards: checks path prefix earlier and checks if filepath.Dir produces an empty path.
filepath.Dir
With certain yaegi configuration on Windows, the loop in
previousRoot
can be infinite, because it fails to recognize driver letters as root.This change adds a few more safeguards: checks path prefix earlier and checks if
filepath.Dir
produces an empty path.