Access Permissions
By default, when using the whole file data format, output files use the default access permissions defined in the destination system. Most destinations allow you to specify access permissions for output files. Amazon S3 does not allow it.
You can enter an expression to define access permissions. Expressions should evaluate to
a symbolic or numeric/octal representation of the permissions you want to use. For
example, to make files read-only for all users, the symbolic representation is
-r--r--r--
. The numeric or octal representation is
0444
.
${record:value('/fileInfo/permissions')}
This ensures, for example, that a source file with execute permission for only the file owner is written to the destination system with the exact same set of permissions.