Dir.entries -> Dir.children

This commit is contained in:
mwiegand 2022-08-11 11:32:05 +02:00
parent e0eafdac5d
commit 36f2bf6440

View file

@ -2,7 +2,7 @@ dir = Path[ENV.fetch("PROCIO_DIR", "/proc")]
result = {} of String => Array(UInt64)
time = Time.local.to_s("%s%9N")
Dir.entries(dir).each do |entry|
Dir.children(dir).each do |entry|
next unless (entry =~ /^\d+$/) && File.directory?(dir/entry)
begin