Mwnci islink() Function

Syntax

islink(string)

Description

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

false is also returned if the path doesn’t exist

Example

include("file")
println(islink("/dev/loop0"))
println(islink("/etc/passwd"))
println(islink("/dev/log"))

false
false
true