code: func RegularSlashes(path string) (res string) {
  	for i := 0; i < len(path); i++ {
  		if (path[i] != '/') || ((i > 0) && (path[i-1] != '/')) {
  			res = res + path[i:i+1]
  		}
  	}
  	if (len(res) > 0) && (res[len(res)-1] == '/') {
  		res = res[:len(res)-1]
  	}
  	return
  }
docs: // file system manifest always contains regularized paths
  // no leading or trailing slashes, only single slashes inside