There are class side methods called “file?” and “directory?” on the File
class that you can use. (ex. File.directory?(“path/to/directory”) )
There are class side methods called “file?” and “directory?” on the File
class that you can use. (ex. File.directory?(“path/to/directory”) )
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs