Walk a directory/Non-recursively: Difference between revisions
Content deleted Content added
Line 675:
import java.io.File
val dir = new File("/foo/bar").list()
▲contents.filter(file => file.endsWith(".mp3")).foreach(println)
</lang>
|
Line 675:
import java.io.File
val dir = new File("/foo/bar").list()
▲contents.filter(file => file.endsWith(".mp3")).foreach(println)
</lang>
|