File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Get Dir List

 
Shankar sanjay
Ranch Hand
Posts: 117
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I want to get Dir List from a root folder using ant script.

The problem in DirSet is, it brings subdirectory in the list. example



I will provide Root Folder as Input, the Dir List includes SubDir2_A and SubDir3_A and SubDir3_B, But i want to get only Dir1,Dir2 and Dir3.

Can anyone tell how to handle this? thanks in advance, your input is more valuable.


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic