Is_Dir - Check if the File is a Directory
Valid on NetWare, Symbian OS, UNIX, Windows and Windows CE
cla140
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
- filenameThis parameter 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\*.
If the file is a directory, this function returns TRUE; 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