Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

DIr.glob does not support paths containing ".." #126

ariofrio opened this Issue Apr 22, 2012 · 1 comment


None yet
1 participant

ariofrio commented Apr 22, 2012

In particular, paths starting with ".." are not supported, while paths containing ".." behave incorrectly.

I've added tests to demonstrate these issues in PR #127.


ariofrio commented Apr 22, 2012

A workaround is to, instead of doing Dir['../*'], do

Dir.chdir(['../') { Dir['*'] }.map { |f| '../' + f }

I'm putting this here for reference, maybe this will be useful in the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment