Closed gyfelton closed 3 years ago
PR welcome, thx for the test!
@grosser Thanks, curious if using a fix on Globber will help here: https://github.com/fakefs/fakefs/issues/133
that's already released, so it does not work ? (you tried with latest ?)
On Tue, Dec 1, 2020 at 9:57 AM Elton Gao notifications@github.com wrote:
@grosser https://github.com/grosser Thanks, curious if using a fix on Globber will help here: #133 https://github.com/fakefs/fakefs/issues/133
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/fakefs/fakefs/issues/451#issuecomment-736719125, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAACYZZLHAHKKNAVNGZKI3LSSUU7DANCNFSM4UJJFZRQ .
resolved by above PR
Original code that reproduces the error. Assuming the following file is created by FakeFS:
tmp/abc+cde/content.txt
The reason for above is because in
self.glob
method ofdir.rb
,%r{\A#{Dir.pwd}/?}
is evaluated as\/tmp\/abc+cde
when it should be\/tmp\/abc\+cde
(%r
only escapes/
not+
)The following test should be success when it is failing: