REBOL Document

Dir? - Function Summary


Summary:

Returns TRUE if a file or URL is a directory.

Usage:

dir? target

Arguments:

target - The target argument. (must be: file url)

Description:

Returns FALSE if it is not a directory.


    print dir? %file.txt
    false


    print dir? %.
    true

Related:

exists? - Determines if a file or URL exists.
make-dir - Creates the specified directory. No error if already exists.
modified? - Returns the last modified date of a file or URL.


<Back | Index | Next>

Copyright 2004 REBOL Technologies