mirror of
https://github.com/NixOS/mobile-nixos.git
synced 2024-12-29 19:01:40 +03:00
13 lines
212 B
Ruby
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
|