func trimLeadingCurrentDir(dir string) string {
	if dir == "." || strings.HasPrefix(dir, "./") {
		dir = dir[1:]
	}

	return dir
}
// trimLeadingCurrentDir strips a leading "./" from a directory, or replace with empty string if the directory contains only a ".".
trimLeadingCurrentDir strips a leading "./" from a directory, or replace with empty string if the directory contains only a ".".
// trimLeadingCurrentDir strips a leading " . / " from a directory or replace with empty string if the directory contains only a " . " .
func trimLeadingCurrentDir(dir string) string {
	if dir == "." || strings.HasPrefix(dir, "./") {
		dir = dir[1:]
	}
	return dir
}
func trimLeadingCurrentDir ( dir string ) string { if dir == " " || strings . HasPrefix ( dir , " " ) { dir = dir [ 1 : ] } return dir }
trimLeadingCurrentDir strips a leading "./" from a directory, or replace with empty string if the directory contains only a ".
trimLeadingCurrentDir strips a leading " . / " from a directory or replace with empty string if the directory contains only a " .