You could use filter/map more and assign the resul...
# tornadofx
e
You could use filter/map more and assign the result to photolist directly. Also, a list of valid extensions and checked against
validExtensions.contains(file.name.toLowerCase().substringAfterLast('.')
would also remove some of that uglyness 🙂