Home Search

DriveWorks Pro 22
IsValidDirectory

Send Feedback

IsValidDirectory

This function checks the specified directory and ensures it is of a valid structure and syntax.

Syntax

IsValidDirectory([Directory])

Where:

Directory is the directory to check.

Examples

Rule

Meaning
IsValidDirectory("\hello\world\directory")This function validates the directory "\hello\world\directory" and returns True as it is structurally and syntactically valid.

Example Outcomes

DirectoryOutcome
"\hello\world\directory"True
"\hello\world\file.txt"False
"\\servername\directory"True
"\hello\world\"True
""False
"\dir:name\"False
"C:\dirname"True
"C:\dirname\file.txt"False