_existdir - UDM Built-in Variable
_existdir
The _existdir built-in variable holds the results of the existdir command.
The _existdir variable is cleared when the command is executed; after execution, _existdir can contain either of four values:
- yes
The directory exists. - no
Either the directory exists or the user does not have access rights. - error
An operating system or file error occurred while checking the file's existence. - null character
Initial state, directory existence has not been checked.
For example: