Answers for "check directory exists ruby function"

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 directory exists ruby function"

Browse Popular Code Answers by Language