fakefs / fakefs

A fake filesystem. Use it in your tests.
MIT License
1.05k stars 188 forks source link

Do not expand globs in FileSystem.find #487

Closed mrzasa closed 1 year ago

mrzasa commented 1 year ago

FileSystem.find was expanding globs causing subtle errors described in

This PR addresses those problems. I've simplified FileSystem.find that it doesn't expand globs now. In case glob expansion is needed (as in Dir.glob), we can use FileSystem.find_with_glob which contains the old implementation of find (the one with glob expantion).

Fixes https://github.com/fakefs/fakefs/issues/264 Fixes https://github.com/fakefs/fakefs/issues/423

grosser commented 1 year ago

looks great, thx!

grosser commented 1 year ago

2.3.0