How to check for file existence [duplicate]

Is there a Ruby class/method where I could pass “a full path”, home/me/a_file.txt, to identify whether it is a valid file path?

2 Answers
2

Leave a Comment