Published
- 1 min read
ruby file is directory
The solution for this is noted below
ruby file is directory
Solution
# Path is a directory
File.directory?(path)
# Path is a file
File.file?(path)
Try other methods by searching on the site. That is if this doesn’t work