code: func hasFile(files []*File, path string) bool {
  	for _, f := range files {
  		if f.path == path {
  			return true
  		}
  	}
  
  	return false
  }
docs: // hasFile return if files has a file which has the path specified by the parameter.