]> Cypherpunks repositories - gostls13.git/commit
path: add Glob
authorBenny Siegert <bsiegert@gmail.com>
Fri, 5 Nov 2010 17:47:56 +0000 (10:47 -0700)
committerRob Pike <r@golang.org>
Fri, 5 Nov 2010 17:47:56 +0000 (10:47 -0700)
commita4f3d647d4d38939dccf456fe9e3155c42b74f7f
tree083fb23e2cb646483db9695ac3caba0fec765ba5
parentea84b4700a8205e2db824941a52c3fa03632b254
path: add Glob

As discussed in http://groups.google.com/group/golang-dev/browse_thread/thread/926b7d550d98ec9e,
add a simple "path expander" function, which returns all the
files matching the given pattern. This function is called Glob
after glob(3) in libc.

Also add a convenience function, hasMeta, that checks whether
a string contains one of the characters which are specially handled
by Match.

R=rsc, r, r2
CC=golang-dev
https://golang.org/cl/2476041
src/pkg/path/match.go
src/pkg/path/match_test.go