Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (12 sloc) 185 Bytes
# directory access
# list all files but .*/*~/*.o
dirp = Dir.open(".")
for f in dirp
case f
when /^\./, /~$/, /\.o/
# do not print
else
print f, "\n"
end
end
dirp.close
Something went wrong with that request. Please try again.