Hi,

how to get the name of directory and subdirectory in a folder? example abc1/banana/(text files)?

i have some codes buts its not given me the name

File dir = new File("abc1");
File[] folder = dir.listFiles();

i want to get the subfolder in abc1 called "banana". thanks for the feedback.

sorry, your question isn't clear. What do you want to do when you get the subfolder.

basically i am doin lucene search engine. having some issues but the subfolders i sorted out already.

can someone familiar with lucene help me give some feedback?thanks.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.