Readlink.
This commit is contained in:
parent
7bf337a83b
commit
399ceebff5
4
readlink.cr
Normal file
4
readlink.cr
Normal 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]
|
Loading…
Reference in New Issue
Block a user