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).
FileSystem.find
was expanding globs causing subtle errors described in*
or{}
) weren't found.This PR addresses those problems. I've simplified
FileSystem.find
that it doesn't expand globs now. In case glob expansion is needed (as inDir.glob
), we can useFileSystem.find_with_glob
which contains the old implementation offind
(the one with glob expantion).Fixes https://github.com/fakefs/fakefs/issues/264 Fixes https://github.com/fakefs/fakefs/issues/423