Previous Topic: Is_Chr - Check if the File is a Character Special FileNext Topic: Is_Fifo - Check the File for the 'Pipe Special' Attribute


Is_Dir - Check if the File is a Directory

Valid on NetWare, Symbian OS, UNIX, Windows and Windows CE

The Is_Dir function checks the file for the specified attribute.

Function format:

Is_Dir(filename as String) as Boolean
filename

Identifies a file path.

Use the correct syntax for file names and directory names. For example, C:\WINNT is a file name, not a directory name. The syntax for a directory is C:\WINNT\*.

This function returns TRUE if the file is a directory; otherwise, it returns FALSE.

Example:

If Is_Dir(Argv(1)) Then
	print(Argv(1) + " indicates 'Dir'.")
Else
	print(Argv(1) + " does not indicate 'Dir'.")
End If