1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-24 08:23:33 +03:00
mobile-nixos/boot/lib/00-monkey_patches/dir.rb

13 lines
212 B
Ruby
Raw Normal View History

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