Get parent directory of current directory in Ruby February 25, 2023 by Tarik File.expand_path("..", Dir.pwd)