Skip to content

Dir.exists? removed in Ruby 3.2 #636

@ScotterC

Description

@ScotterC

Extconf uses Dir.exists? which was removed in Ruby 3.2 (ruby-lang issue)

Dir.mkdir("data") unless Dir.exists?("data")
Dir.mkdir("util") unless Dir.exists?("util")
Dir.mkdir("storage") unless Dir.exists?("storage")
Dir.chdir("storage") do
Dir.mkdir("yale") unless Dir.exists?("yale")
Dir.mkdir("list") unless Dir.exists?("list")
Dir.mkdir("dense") unless Dir.exists?("dense")
end

To those running into this problem here's a monkey patch gem file_exists which is really just this alias_method

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions