Answers for "ruby check if path is a directory"

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 "ruby check if path is a directory"

Browse Popular Code Answers by Language