diff --git a/readlink.cr b/readlink.cr new file mode 100644 index 0000000..65ea50e --- /dev/null +++ b/readlink.cr @@ -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]