Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

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

Open
ariofrio opened this Issue · 1 comment

1 participant

@ariofrio

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

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.