Gambas Documentation - /lang/isdir

# IsDir

Result = IsDir ( Path AS String ) AS Boolean

Returns TRUE if the String argument Path points to a directory.

If the file with the name Path does not exist, or if it is not a directory, then this function returns FALSE.

### Examples

    PRINT IsDir("/etc/password"),  IsDir("."),  IsDir(".."),  IsDir("../.."), IsDir("/dev/hda")

    False   False   False   False   False

    PRINT IsDir(User.Home &/ ".kde"), IsDir("/etc/X11"), IsDir("/etc"), IsDir("/"), IsDir("/dev")

    True    True    True    True    True

### See also

- File & Directory Functions