Readlink.

This commit is contained in:
Philippe PITTOLI 2024-05-12 03:15:02 +02:00
parent 7bf337a83b
commit 399ceebff5

4
readlink.cr Normal file
View File

@ -0,0 +1,4 @@
pp! ARGV[0]
pp! File.readlink(ARGV[0]).sub(/^.*\//, "").to_i
pp! File.exists? ARGV[0]
pp! File.symlink? ARGV[0]