File tree 1 file changed +15
-11
lines changed
1 file changed +15
-11
lines changed Original file line number Diff line number Diff line change @@ -216,20 +216,24 @@ def expand_paths
216
216
path = date . strftime ( path )
217
217
if path . include? ( '*' )
218
218
paths += Dir . glob ( path ) . select { |p |
219
- is_file = !File . directory? ( p )
220
- if File . readable? ( p ) && is_file
221
- if @limit_recently_modified && File . mtime ( p ) < ( date - @limit_recently_modified )
222
- false
219
+ begin
220
+ is_file = !File . directory? ( p )
221
+ if File . readable? ( p ) && is_file
222
+ if @limit_recently_modified && File . mtime ( p ) < ( date - @limit_recently_modified )
223
+ false
224
+ else
225
+ true
226
+ end
223
227
else
224
- true
225
- end
226
- else
227
- if is_file
228
- unless @ignore_list . include? ( path )
229
- log . warn "#{ p } unreadable. It is excluded and would be examined next time."
230
- @ignore_list << path if @ignore_repeated_permission_error
228
+ if is_file
229
+ unless @ignore_list . include? ( path )
230
+ log . warn "#{ p } unreadable. It is excluded and would be examined next time."
231
+ @ignore_list << path if @ignore_repeated_permission_error
232
+ end
231
233
end
234
+ false
232
235
end
236
+ rescue Errno ::ENOENT
233
237
false
234
238
end
235
239
}
You can’t perform that action at this time.
0 commit comments