is_dir


The is_dir function determines whether a name corresponds to a directory. The target directory is specified using its full path, for example, a string or value equal to "D:\\data\\2022-06-14\\data". Note that Windows directory components must be separated by the '\\' or '/' characters.

Syntax

bSuccess = is_dir( sName )

bullet.gif    sName is the name to test as a potential directory.

bullet.gif    bSuccess is true if sName corresponds to a directory, or false if not.

Remarks

This function returns false if the target name is not a directory. In that case, try is_file to test whether it is instead a file.

Related Topics

Directory Functions, is_file, get_dir


Mira Pro x64 Script User's Guide, Copyright Ⓒ 2024 Mirametrics, Inc. All Rights Reserved.