blob: 0c55078973744d4ac970461d9b911dd79c80170e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
# directory access
# list all files but .*/*~/*.o
dirp = Dir.open(".")
for f in dirp
case f
when /\A\./, /~\z/, /\.o\z/
# do not print
else
print f, "\n"
end
end
dirp.close
|