SpiderFlow-file

时间:2026-02-15

file

file

write

参数名描述可否为空
path写出的路径否
content/bytes/stream内容,字符串或字节数组或二进制输入流否
append布尔类型,是否追加输出,默认为false是

TIP

无返回值

  • 写出文件,内容为hello world!

${file.write('/data/test.txt','hello world!')}

download

参数名描述可否为空
path写出的路径否
url/urls要下载的url或url集合否

TIP

无返回值

  • 写出文件,批量下载文件

${file.download('/data/',urls)}

bytes

参数名描述可否为空
path要读取的文件路径否

TIP

返回值类型:byte[]

  • 读取/data/test.txt文件

${string.bytes('/data/test.txt')}

string

参数名描述可否为空
path要读取的文件路径否
charset编码格式,默认为UTF-8是

TIP

返回值类型:String

  • 读取/data/test.txt文件

${string.string('/data/test.txt')}


免责声明:服务用于个人学习、研究或欣赏,以及其他非商业性或非盈利性用途,但同时应遵守著作权法及其他相关法律的规定,不得侵犯本网站及相关权利人的合法权利。
IPv4 © 2005-2026 库目书 版权所有 | kumushu.com .All Rights Reserved
黑ICP备2022003236号-1