symlink? Returns true if the file is a symbolic link : symlink « File Directory « Ruby






symlink? Returns true if the file is a symbolic link


File.symlink("testfile", "alink")  
File.stat("alink").symlink?  
File.lstat("alink").symlink?  

 

Related examples in the same category

1.Link a file