kaniko/pkg/snapshot
Priya Wadhwa 2a359f547c Only return filepath.SkipDir for directories
From the docs on filepath.SkipDir:

> If the function returns SkipDir when invoked on a non-directory file, Walk skips the remaining files in the containing directory

This was causing the bug in #457. Since the file `/etc/hosts` was in the whitelist, when filepath.SkipDir was called the entire etc directory was skipped.

This change only returns filepath.SkipDir on directories.
2018-11-19 15:56:11 -05:00
..
layered_map.go Buffer layers to disk as they are created. (#428) 2018-11-06 09:26:54 -06:00
layered_map_test.go code review comments 2018-09-07 16:03:56 -07:00
snapshot.go Only return filepath.SkipDir for directories 2018-11-19 15:56:11 -05:00
snapshot_test.go Buffer layers to disk as they are created. (#428) 2018-11-06 09:26:54 -06:00