Answers for "check if directory exists ruby"

1

ruby check if path is a directory

# Check if filesystem node at path "name" is a directory
File.directory?("name")
# Check if it's a file
File.file?("name")
Posted by: Guest on June-22-2021

Code answers related to "check if directory exists ruby"

Browse Popular Code Answers by Language