Answers for "ruby check if a file exists"

0

ruby check if a file exists

# file? will only return true for files
File.file?(filename)
# Will also return true for directories
File.exist?(filename)
Posted by: Guest on April-25-2021

Browse Popular Code Answers by Language