Readlink.

toying-with-ramdb
Philippe PITTOLI 2024-05-12 03:15:02 +02:00
parent 01cc4633fe
commit 714300bdb5
1 changed files with 4 additions and 0 deletions

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]