REBOL 3 Docs | Guide | Concepts | Functions | Datatypes | Errors |
TOC < Back Next > | Updated: 3-Aug-2010 Edit History |
Returns TRUE if the file or url ends with a slash (or backslash).
Arguments:
target [file! url!]
See also:
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 |