Rebol 编程/size?
外观
< Rebol 编程
SIZE? target
返回文件或 URL 内容的大小。
SIZE? 是一个函数值。
- 目标 -- (类型:文件 url)
- 捕获
size?: func [
"Returns the size of a file or URL's contents."
[catch]
target [file! url!]
/local info
][
info: throw-on-error [info? target]
either none? info [none] [info/size]
]