FileTools

 determine whether a file is a symbolic link

Parameters

 file - filename

Description

 • The IsLink(file) command returns true if file refers to a symbolic link.  If it is not a symbolic link, false is returned.
 • If the file does not exist, an exception is raised.

Examples

 > $\mathrm{FileTools}\left[\mathrm{Text}\right]\left[\mathrm{WriteFile}\right]\left("file","data"\right)$
 ${4}$ (1)
 > $\mathrm{FileTools}\left[\mathrm{IsLink}\right]\left("file"\right)$
 ${\mathrm{false}}$ (2)
 > $\mathrm{FileTools}\left[\mathrm{Remove}\right]\left("file"\right)$

Compatibility

 • The FileTools[IsLink] command was introduced in Maple 2018.