Rebol 编程/退出
外观
< Rebol 编程
EXISTS? target
判断文件或 URL 是否存在。
EXISTS? 是一个函数值。
- 目标 -- (类型: 文件 url)
exists?: func [
"Determines if a file or URL exists."
target [file! url!]
/local ret
][
either error? try [
target: make port! target
query target
] [false] [found? target/status]
]