dagolden / Path-Tiny

File path utility
41 stars 59 forks source link

Feature request: $path->children('*.txt') or $path->glob('*.txt') #279

Open mscha opened 1 year ago

mscha commented 1 year ago

Of course, to find all text files, you can do

$path->children(qr/\.txt$/)

But that's not an intuitive way to think of filenames.

It'd be much nicer to be able to do

$path->children('*.txt')

Or if that might cause problems with compatibility,

$path->glob('*.txt')