Project

General

Profile

Actions

Feature #7360

closed

Adding Pathname#glob

Added by aef (Alexander E. Fischer) over 11 years ago. Updated over 6 years ago.

Status:
Closed
Target version:
-
[ruby-core:49373]

Description

Currently there is only a Pathname.glob method, which allows you to find Pathname objects by a pattern including wildcard characters like '*'.

I would like to be able to use this relative to a current Pathname.

some_directory = Pathname.new('some_directory')
Pathname.glob(some_directory + 'a*') # all children starting with "a"

could then simply be:

some_directory.glob('a*') # all children starting with "a"

If you like the idea, please let me know. I will provide a patch then.


Files


Related issues 2 (0 open2 closed)

Related to Ruby master - Feature #7378: Adding Pathname#writeClosedakr (Akira Tanaka)06/02/2012Actions
Blocked by Ruby master - Feature #13056: base option to Dir.globClosedActions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0