Ruby – Check whether a file or directory exists

Checking whether a file exists or not, is one of the most basic file related tasks which you will do most of the times and thankfully Ruby’s File class provides two methods called File.file?(),File.exist?() to test […]

DMCA.com Protection Status