Readlink.
This commit is contained in:
parent
01cc4633fe
commit
714300bdb5
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