Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


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

ariofrio opened this Issue · 1 comment

1 participant


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

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


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
Something went wrong with that request. Please try again.