Merge pull request #461 from priyawadhwa/etc-bug

Only return filepath.SkipDir for directories
This commit is contained in:
priyawadhwa
2018-11-19 22:15:26 -08:00
committed by GitHub
2 changed files with 16 additions and 2 deletions
+5 -2
View File
@@ -147,8 +147,11 @@ func (s *Snapshotter) TakeSnapshotFS() (string, error) {
return err
}
if util.IsInWhitelist(path) {
logrus.Infof("Skipping paths under %s, as it is a whitelisted directory", path)
return filepath.SkipDir
if util.IsDestDir(path) {
logrus.Infof("Skipping paths under %s, as it is a whitelisted directory", path)
return filepath.SkipDir
}
return nil
}
memFs[path] = info