NIUCLOUD是一款SaaS管理后台框架多应用插件+云编译。上千名开发者、服务商正在积极拥抱开发者生态。欢迎开发者们免费入驻。一起助力发展! 广告
# C.11 FileSizeTask Stores the size of a specified file in a property. The file size is returned in bytes. Table C.12:聽Attributes NameTypeDescriptionDefaultRequired`file``String`Filename.n/aYes`propertyname``String`Name of property where the file size is stored.filesizeNo C.11.1 Example ``` <filesize file="${builddir}/${tarball}.tar.${compression}" /> <php expression="floor(${filesize}/1024)" returnProperty="ksize" /> <php expression="floor(${filesize}/1024/1024)" returnProperty="msize" /> <echo msg="Filesize is: ${ksize} kB"/> <echo msg="Filesize is: ${msize} MB"/> ```