[%CFEngine_function_prototype(filename)%]

Description: Returns whether the named object filename is a symbolic link.

The link node must both exist and be a symbolic link. Hard links cannot be detected using this function.

Notes:

[%CFEngine_function_attributes(filename)%]

Example:

Prepare:

[%CFEngine_include_snippet(islink.cf, #+begin_src prep, .*end_src)%]

Run:

[%CFEngine_include_snippet(islink.cf, #+begin_src cfengine3, .*end_src)%]

Output:

[%CFEngine_include_snippet(islink.cf, #+begin_src\s+example_output\s, .end_src)%]

See Also: fileexists(), filestat(), isdir(), isplain(), returnszero()