Product Site

8.36. SysIsFileDirectory

Checks for the existence of a subdirectory.

Parameters:
dirname

The name of the subdirectory to check for the existence of. The directory name does not support wildcard characters. On Unix-like systems, if the first character is a ~ (tilde) character optionally followed by a username, it is replaced by the current or specified user's home directory.

Returns:
0

The subdirectory does not exist.
1

The subdirectory exists.
Example 8.27. RexxUtil — SysIsFileDirectory
if SysIsFileDirectory(InputFile) then say "Subdirectory Exists!"
else say "Subdirectory does not exist."