chdir « File Directory « Ruby






1.Compare a variable storing a directory path with the current directory
2.To change directory within a Ruby program, use Dir.chdir: