code: func NewFilePersister(directory string) (*FilePersister, error) {
  	err := os.MkdirAll(directory, 0777)
  	return &FilePersister{
  		directory: directory,
  	}, err
  }
docs: // NewFilePersister creates a FilePersister for saving to a given directory