Similar Collections


directory is a location where the files can be stored. In Ruby programming language, the \"Dir\" class and the \"FileUtils\" module are used to manage the directories and the File class is used to handle the files.

This study list contains Ruby directories programs, practice these Ruby programs to learn the concept of Ruby directories, these programs contain the solved code, outputs, and the detailed explanation of the statements, functions used in the Ruby directories programs.

questions

Title
Ruby program to create a directory
Ruby program to check a directory is exist or not
Ruby program to print the current working directory
Ruby program to remove a specified directory
Ruby program to get the list the name of files in a specified directory
Ruby program to get the current working directory using Dir::getwd() method
Ruby program to delete an empty directory using Dir::unlink(), Dir::delete() methods
Ruby program to get the list of filenames matching the specified wild card pattern
Ruby program to get the filename one by one using Dir::foreach() method
Ruby program to print the home directory of the current user
Ruby program to change the current directory using Dir::chdir() method
total questions: 11

Questions

11

Views

216

Best Answers

299

Points

5