• Ian Lance Taylor's avatar
    path: Fix Glob when it finds a file in directory position. · be0b649e
    Ian Lance Taylor authored
    When searching a list of directories, the files which match
    the pattern are accumulated in a slice.  If the glob has a
    wildcard for the directory, and the wildcard matches a file
    rather than a directory, then the files found so far are
    discarded.  E.g., path.Glob("*/x") in a directory which
    contains both files and subdirectories.  This patch avoids
    discarding matches found so far when a file is found.
    
    R=r
    CC=bsiegert, golang-dev
    https://golang.org/cl/3015042
    be0b649e
Name
Last commit
Last update
..
cmd Loading commit data...
lib9 Loading commit data...
libbio Loading commit data...
libcgo Loading commit data...
libmach Loading commit data...
pkg Loading commit data...
Make.ccmd Loading commit data...
Make.clib Loading commit data...
Make.cmd Loading commit data...
Make.common Loading commit data...
Make.inc Loading commit data...
Make.pkg Loading commit data...
all-nacl.bash Loading commit data...
all.bash Loading commit data...
clean.bash Loading commit data...
env.bash Loading commit data...
make.bash Loading commit data...
quietgcc.bash Loading commit data...
run.bash Loading commit data...
sudo.bash Loading commit data...
version.bash Loading commit data...