mirror of
https://github.com/NixOS/mobile-nixos.git
synced 2024-12-24 08:23:33 +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
|