Mwnci isexist() Function

Syntax

isexist(string)

Description

The isexist() function returns true if the path points to a file that exists, false if not.

Example

include("file")
println(isexist("/dev/loop0"))
println(isexist("/etc/passwd"))
println(isblock("/tmp/noexist"))

true
true
false