symlink? Returns true if the file is a symbolic link
File.symlink("testfile", "alink") File.stat("alink").symlink? File.lstat("alink").symlink?