A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Ant, Maven and Other Build Tools
Get Dir List
Joined: Sep 14, 2009
Sep 17, 2011 09:49:15
I want to get Dir List from a root folder using
The problem in DirSet is, it brings subdirectory in the list. example
My RootFolder = Root +Dir1 +Dir2 + SubDir2_A +Dir3 + SubDir3_A + SubDir3_B
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.
Have you checked out
subject: Get Dir List
Basic Ant excludes question
Using find, excluding directories
classpath setup by taking jars from multiple directory
Moving files in java
Development: trouble with import and classpath
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015