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).

Arguments:

target [file! url!]

See also:

make-dir   modified?   exists?  

Description

Under Review

This function is under review for redefinition.

Returns false if it is not a directory.

print dir? %file.txt
false
print dir? %.
true

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 > REBOL.com - WIP Wiki Feedback Admin