Answers for "ruby check if path exists?"

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

Browse Popular Code Answers by Language