Mwnci isfile() Function

Syntax

isblock(string)

Description

The isfile() function returns true if the path points to a standard file , false if it points to another kind of file.

false is also returned if the path doesn’t exist

Example

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

false
true
false