Skip to content

Instantly share code, notes, and snippets.

@kgilmer
Created April 10, 2018 02:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kgilmer/95dae171ce94e53068eb713a7abccd76 to your computer and use it in GitHub Desktop.
Save kgilmer/95dae171ce94e53068eb713a7abccd76 to your computer and use it in GitHub Desktop.
fun main(args: Array<String>) {
File(args[0])
.walk()
.mapNotNull { file ->
readAudioFileOrNull(file)
}
.mapNotNull { audioFile ->
extractMetadataOrNull(audioFile)
}
.forEach { println(it) }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment