file_exists
Check if a file or directory exists at a given path, returning true or false to support conditional operations.
Instructions
Check if a file or directory exists at the specified path. Returns true if exists, false otherwise. Useful for conditional operations. / 检查指定路径的文件或目录是否存在。存在返回 true,否则返回 false。用于条件操作。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | The path to check for existence. Can be a file or directory path. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| exists | Yes |