// trimPath removes '/' if it is the last character and returns resulting string
trimPath removes '/' if it is the last character and returns resulting string
// trimPath removes ' / ' if it is the last character and returns resulting string
func trimPath(npath string) string {
	if npath[len(npath)-1:] == "/" {
		npath = npath[:len(npath)-1]
	}
	return npath
}
func trimPath ( npath string ) string { if npath [ len ( npath ) - 1 : ] == " " { npath = npath [ : len ( npath ) - 1 ] } return npath }
trimPath removes '/' if it is the last character and returns resulting string
trimPath removes ' / ' if it is the last character and returns resulting string