Skip to main content

参数

string
必填
Path resolved inside the workspace after separator normalization and workspace-boundary checks. Invalid or outside-workspace paths error before a boolean is returned.

返回值

boolean
True only when the resolved path exists and is a regular file; folders and missing paths return false.

示例

检查 workspace path 是否解析到已存在的 regular file。