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.“path/to/directory”) )

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs