Rebol Programming/dir?

= USAGE: = DIR? target

= DESCRIPTION: = Returns TRUE if a file or URL is a directory.

DIR? is a function value. = ARGUMENTS =
 * target -- (Type: file url)

= (SPECIAL ATTRIBUTES) =
 * catch

= SOURCE CODE = dir?: func [ "Returns TRUE if a file or URL is a directory." [catch] target [file! url!] /local info ][   info: throw-on-error [info? target] either none? info [false] [info/type = 'directory] ]