B.47 TruncateTask

Set the length of one file, as the intermittently available truncate Unix utility/function.

Table B.49: Attributes

NameTypeDescriptionDefaultRequired
fileStringThe name of the file.n/aYes
lengthIntegerSpecifies the new file length (in bytes) to set.n/aNo
adjustIntegerSpecifies the number of bytes (and positive/negative direction) by which to adjust file lengths.n/aNo
createBooleanWhether to create nonexistent files.trueNo
mkdirsBooleanWhether to create nonexistent parent directories when creating new files.falseNo

B.47.1 Examples

<truncate file="foo" />