lstat: Same as IO#stat, but does not follow the last symbolic link. : lstat « File Directory « Ruby






lstat: Same as IO#stat, but does not follow the last symbolic link.



File.symlink("testfile", "link2test")  0
File.stat("testfile").size  66
f = File.new("link2test")
f.lstat.size  8
f.stat.size  66 

 








Related examples in the same category

1.Get stat for your file