< Rebol Programming
USAGE:
EXISTS? target
DESCRIPTION:
Determines if a file or URL exists.
EXISTS? is a function value.
ARGUMENTS
- target -- (Type: file url)
SOURCE CODE
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]
]
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.