Last modified on 27 October 2012, at 22:09

REBOL Programming/exists?

USAGE:Edit

EXISTS? target 

DESCRIPTION:Edit

Determines if a file or URL exists.

EXISTS? is a function value.

ARGUMENTSEdit

  • target -- (Type: file url)

SOURCE CODEEdit

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]
]