lib/rocket_job/dirmon_entry.rb in rocketjob-6.0.0.rc3 vs lib/rocket_job/dirmon_entry.rb in rocketjob-6.0.0
- old
+ new
@@ -171,10 +171,10 @@
counts[result["_id"].to_sym] = result["count"]
end
counts
end
- # Passes each filename [Pathname] found that matches the pattern into the supplied block
+ # Yields [IOStreams::Path] for each file found that matches the current pattern.
def each
SemanticLogger.named_tagged(dirmon_entry: id.to_s) do
# Case insensitive filename matching
IOStreams.each_child(pattern) do |path|
path = path.realpath