Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

How can I get name of all subdirectoies in specific directory?

$
0
0
This code get only files, but I need folders to

public void process(Exchange exchange) throws Exception {

File file = exchange.getIn().getBody(File.class);
if (file.isDirectory()) {
System.out.println( "!DIR");

Viewing all articles
Browse latest Browse all 5648

Trending Articles