application : DIR_EXISTS_BOOL
Overview
This video demonstrates the DIR_EXISTS_BOOL application command in Nitro-CELL, which checks whether a specified directory exists on the file system and returns a boolean result. This command is useful for validating folder paths before attempting file operations such as saving, exporting, or opening models from a particular location. By confirming a directory exists before proceeding, engineers can build more robust automation workflows that handle missing folders gracefully instead of failing mid-execution. The video shows how to enter the command with a directory path argument, execute it, and read the true/false result from the status column.
Key Steps
- Enter the DIR_EXISTS_BOOL command with the target directory path
- Execute the command to check if the directory exists
- Read the boolean result from the output cell
- Use the result to conditionally proceed with file operations
- Combine with directory creation or error handling for robust workflows
Tips
- Use this check before Save As or Export commands that target specific directories
- Combine with conditional logic to create directories that do not yet exist
- The command checks the local file system accessible from the Creo session