Dir.entries -> Dir.children
This commit is contained in:
parent
e0eafdac5d
commit
36f2bf6440
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue