Fixes a bug triggered by calling File.directory? with a filename containing a period #131

Closed
wants to merge 1 commit into
from

1 participant

@lytithwyn

Fixes a bug in FileSystem.find_recurser where supplying a filename containing a "." results in that "." being treated as a wild-card by the file-finding regular expression(s). This bug was causing an "undefined method entry" exception to be thrown in File.directory? since FileSystem.find was unexpectedly returning an array if more than one file matched the spurious wildcard.

@lytithwyn lytithwyn Fixes a bug in FileSystem.find where supplying a filename containing …
…a "." results in that "." being treated as a wildcard by the

file-finding regular expression(s).  This bug was causing an "undefined
method entry" exception to be thrown in File.directory? since
FileSystem.find was unexpectedly returning an array if more than one file matched the
spurious wildcard.
cc27af9
@lytithwyn

The commit message should actually say it's a bug in FileSystem.find_recurser. Also, sorry about the extra whitespace. Vim does weird stuff when editing commit messages.

@lytithwyn lytithwyn closed this May 7, 2012
@lytithwyn

Evidently this breaks things. New solution in the works!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment