REBOL 3 Docs Guide Concepts Functions Datatypes Errors
  TOC < Back Next >   Updated: 3-Aug-2010 Edit History  

REBOL 3 Functions: dir?

dir?  target

Returns TRUE if the file or url ends with a slash (or backslash).


target [file! url!]

See also:

make-dir   modified?   exists?  


Under Review

This function is under review for redefinition.

Returns false if it is not a directory.

print dir? %file.txt
print dir? %.

Note that the file that is input, is read from disk, if it exists. The function returns true, when the input either ends in / or if the name exists on disk as a directory.

  TOC < Back Next > - WIP Wiki Feedback Admin