Project

General

Profile

Actions

Feature #8258

open

Dir#escape_glob

Added by steveklabnik (Steve Klabnik) over 8 years ago. Updated over 2 years ago.

Status:
Feedback
Priority:
Normal
Assignee:
-
Target version:
-
[ruby-core:54207]

Description

This is inspired by https://github.com/rails/rails/issues/6010.

Basically, if you do a Dir.glob in a directory whose name contains a glob character, things break. It would be nice to have a method which would escape the input so that we can Dir.glob inside of those directories.

Actions

Also available in: Atom PDF