attrIsSymlink

fnbool attrIsSymlink(uint attributes) @safe pure nothrow @nogc

Returns whether the given file attributes are for a symbolic link.

On Windows, return true when the file is either a symbolic link or a junction point.

Parameters

attributesThe file attributes.

Returns

true if attributes are for a symbolic link

Example: -------------------- core.sys.posix.unistd.symlink("/etc/fonts/fonts.conf", "/tmp/alink");

assert(!getAttributes("/tmp/alink").isSymlink); assert(getLinkAttributes("/tmp/alink").isSymlink); --------------------