code: func ensureDirectory(fs utilfs.Filesystem, path string) error {
  	if _, err := fs.Stat(path); err != nil {
  		// MkdirAll returns nil if directory already exists.
  		return fs.MkdirAll(path, 0755)
  	}
  	return nil
  }
docs: // ensureDirectory creates the directory if it does not exist.