1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-29 19:01:40 +03:00
mobile-nixos/boot/init/lib/monkey_patches/dir.rb
2020-02-03 16:19:10 -05:00

13 lines
212 B
Ruby

class Dir
def self.children(dirname)
acc = []
Dir.open(dirname) do |dir|
dir.each do |child|
next if child == "." or child == ".."
acc << child
end
end
acc
end
end