Just another update
This commit is contained in:
parent
a25938f123
commit
00a190b0a6
6591 changed files with 94363 additions and 23227 deletions
|
|
@ -0,0 +1,12 @@
|
|||
import java.io.IOException;
|
||||
import java.nio.file.*;
|
||||
|
||||
public class WalkTree {
|
||||
public static void main(String[] args) throws IOException {
|
||||
Path start = FileSystems.getDefault().getPath("/path/to/file");
|
||||
Files.walk(start)
|
||||
.filter( path -> path.toFile().isFile())
|
||||
.filter( path -> path.toString().endsWith(".mp3"))
|
||||
.forEach( System.out::println );
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue