Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java file search recursive

try (Stream<Path> walkStream = Files.walk(Paths.get("your search directory"))) {
    walkStream.filter(p -> p.toFile().isFile()).forEach(f -> {
        if (f.toString().endsWith("file to be searched")) {
            System.out.println(f + " found!");
        }
    });
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #java #file #search #recursive
ADD COMMENT
Topic
Name
3+5 =