Making Samples executable. #!/usr/bin/env io and chmod a+x *.io
[io/quag.git] / samples / misc / Dir.io
blob9960de3994864f27ee5cd9b46c540cb971335255
1 #!/usr/bin/env io
2 //Directory folders := method(items select(item, item type ==("Directory") and(item name != ".") and(item name != "..")))
4 writeln("")
5 writeln("items:")
6 Directory items foreach(path println)
8 writeln("")
9 writeln("folders:")
10 Directory folders foreach(name println)
12 //writeln("")
13 //writeln("files:")
14 //Directory files foreach(path println)