github.com/hashicorp/packer@v1.14.3/website/content/partials/provisioner/file/Config-not-required.mdx (about) 1 <!-- Code generated from the comments of the Config struct in provisioner/file/provisioner.go; DO NOT EDIT MANUALLY --> 2 3 - `sources` ([]string) - A list of sources to upload. This can be used in place of the `source` 4 option if you have several files that you want to upload to the same 5 place. Note that the destination must be a directory with a trailing 6 slash, and that all files listed in `sources` will be uploaded to the 7 same directory with their file names preserved. 8 9 - `direction` (string) - The direction of the file transfer. This defaults to "upload". If it is 10 set to "download" then the file "source" in the machine will be 11 downloaded locally to "destination" 12 13 - `generated` (bool) - For advanced users only. If true, check the file existence only before 14 uploading, rather than upon pre-build validation. This allows users to 15 upload files created on-the-fly. This defaults to false. We 16 don't recommend using this feature, since it can cause Packer to become 17 dependent on system state. We would prefer you generate your files before 18 the Packer run, but realize that there are situations where this may be 19 unavoidable. 20 21 <!-- End of code generated from the comments of the Config struct in provisioner/file/provisioner.go; -->