Yuari
Documentation

isfile

Returns true when the path is a regular file.

Syntax

isfile(path: string) -> boolean

Parameters

ParameterTypeDescription
pathstringA path inside the Yuari workspace.

Returns

TypeDescription
booleanTrue when the path is a regular file

Description

isfile is part of the File system library. File functions are sandboxed to the executor workspace; paths outside it are rejected.

The call is a predicate: it inspects the current state and returns a boolean without modifying anything.

Example

print(isfile("configs/aim.json"))

Notes

  • Paths are sandboxed to the executor workspace.