ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
# C.109 UntarTask The `UntarTask` unpacks one or more tar archives. Table C.143:聽Attributes NameTypeDescriptionDefaultRequired`file``String`Archive filenamen/aNo`todir``String`Directory to unpack the archive(s) tononeYes`removepath``String`Path to remove from files in the archive(s)noneNo`forceExtract``Boolean`When set to false, only extract files if the destination does not exist yet or is older than the archive. When set to true, always extract files.`false`No`preservePermissions``Boolean`When set to true, preserve permissions (mode, uid, gid) as set in the tar file..`false`No C.109.1 Example ``` <untar file="testtar.tar.gz" todir="dest"> <fileset dir="."> <include name="*.tar.gz"/> <include name="*.tar"/> </fileset> </untar> ``` C.109.2 Supported Nested Tags - `fileset`