Skip to content

Commit e6b5841

Browse files
committed
Re-add walk method to utils.build
Signed-off-by: Joffrey F <[email protected]>
1 parent 088094c commit e6b5841

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docker/utils/build.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,11 @@ def normalize_slashes(p):
146146
return p
147147

148148

149+
def walk(root, patterns, default=True):
150+
pm = PatternMatcher(patterns)
151+
return pm.walk(root)
152+
153+
149154
# Heavily based on
150155
# https://github.com/moby/moby/blob/master/pkg/fileutils/fileutils.go
151156
class PatternMatcher(object):

0 commit comments

Comments
 (0)