code: func WriteIgnores(filesystem fs.Filesystem, path string, content []string) error {
  	fd, err := osutil.CreateAtomicFilesystem(filesystem, path)
  	if err != nil {
  		return err
  	}
  
  	for _, line := range content {
  		fmt.Fprintln(fd, line)
  	}
  
  	if err := fd.Close(); err != nil {
  		return err
  	}
  	filesystem.Hide(path)
  
  	return nil
  }
docs: // WriteIgnores is a convenience function to avoid code duplication