is_file


The is_file function determines whether a name corresponds to a file. The target name 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_file( sName )

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

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

Remarks

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

Related Topics

Directory Functions, is_dir, get_dir


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