code: func IsTemporary(name string) bool {
  	name = filepath.Base(name)
  	if strings.HasPrefix(name, WindowsTempPrefix) ||
  		strings.HasPrefix(name, UnixTempPrefix) {
  		return true
  	}
  	return false
  }
docs: // IsTemporary is true if the file name has the temporary prefix. Regardless
  // of the normally used prefix, the standard Windows and Unix temp prefixes
  // are always recognized as temp files.