true when the path exists and is a file. A folder, or a missing path, returns false.
Parameters
string
required
The path to test.
Returns
boolean
true if the path is a file.Example
Related
isfolder: test for a folder.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Test whether a path is a file.
isfile(path: string) -> boolean
true when the path exists and is a file. A folder, or a missing path, returns false.
true if the path is a file.if isfile("config.json") then print(readfile("config.json")) end
isfolder: test for a folder.