ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
# B.46 TruncateTask Set the length of one file, as the intermittently available truncate Unix utility/function. Table B.47:聽Attributes NameTypeDescriptionDefaultRequired`file``String`The name of the file.n/aYes`length``Integer`Specifies the new file length (in bytes) to set.n/aNo`adjust``Integer`Specifies the number of bytes (and positive/negative direction) by which to adjust file lengths.n/aNo`create``Boolean`Whether to create nonexistent files.`true`No`mkdirs``Boolean`Whether to create nonexistent parent directories when creating new files.`false`No B.46.1 Examples `<truncate file="foo" />`