Example: -------------------- core.sys.posix.unistd.symlink("/etc/fonts/fonts.conf", "/tmp/alink");
assert(!getAttributes("/tmp/alink").isSymlink); assert(getLinkAttributes("/tmp/alink").isSymlink); --------------------
bool attrIsSymlink(uint attributes) @safe pure nothrow @nogcReturns 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.
attributes | The file attributes. |
Example: -------------------- core.sys.posix.unistd.symlink("/etc/fonts/fonts.conf", "/tmp/alink");
assert(!getAttributes("/tmp/alink").isSymlink); assert(getLinkAttributes("/tmp/alink").isSymlink); --------------------