Skip mtime for non-existent symlink.
This commit is contained in:
parent
9a699ccf54
commit
ae18bdf161
@ -43,6 +43,8 @@ module CleanupRefinement
|
|||||||
return false unless days
|
return false unless days
|
||||||
return true if days.zero?
|
return true if days.zero?
|
||||||
|
|
||||||
|
return true if symlink? && !exist?
|
||||||
|
|
||||||
# TODO: Replace with ActiveSupport's `.days.ago`.
|
# TODO: Replace with ActiveSupport's `.days.ago`.
|
||||||
mtime < ((@time ||= Time.now) - days * 60 * 60 * 24)
|
mtime < ((@time ||= Time.now) - days * 60 * 60 * 24)
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user