@@ -143,19 +143,17 @@ func (w *FastGlobWalker) shouldSkip(path string) bool {
143143
144144 relPath, err := filepath.Rel(w.rootPath, path)
145145 if err != nil {
146− relPath = path
146+ return false
147147 }
148148
149− // Check gitignore patterns if available
150149 if w.gitignore != nil {
151− if err == nil && w.gitignore.MatchesPath(relPath) {
150+ if w.gitignore.MatchesPath(relPath) {
152151 return true
153152 }
154153 }
155154
156− // Check crushignore patterns if available
157155 if w.crushignore != nil {
158− if err == nil && w.crushignore.MatchesPath(relPath) {
156+ if w.crushignore.MatchesPath(relPath) {
159157 return true
160158 }
161159 }