Skip to content

Instantly share code, notes, and snippets.

@nddrylliog
Created December 17, 2012 03:06
Show Gist options
  • Save nddrylliog/4315543 to your computer and use it in GitHub Desktop.
Save nddrylliog/4315543 to your computer and use it in GitHub Desktop.
List files in ooc (testing here for platform compatibility)
import io/File
main: func {
file := File new("items")
children := file getChildrenNames() filter(|x| x endsWith?(".yml"))
for (c in children) {
"%s" printfln(c[0..-5])
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment