B.46 TruncateTask

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

Table B.47: Attributes

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.46.1 Examples

<truncate file="foo" />