Re: How distinguish between a file and a directory?

There are class side methods called “file?” and “directory?” on the File
class that you can use. (ex. File.directory?(“path/to/directory”) )