This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Getting all parent directory name Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Getting all parent directory name" Watch "Getting all parent directory name" New topic

Getting all parent directory name

kayanaat sidiqui
Ranch Hand

Joined: Sep 04, 2008
Posts: 122
Hi all,

Suppose i have directory structure like like this-


How can i take the output like this "myfile is in : dir_1/dir_2"?
harilal ithikkat
Ranch Hand

Joined: Oct 06, 2008
Posts: 221

i got

SCJP 1.5
"A candle looses nothing by lighting another candle"
Consider Paul's rocket mass heater.
subject: Getting all parent directory name
Similar Threads
ant in the PATH
Error compoling servlets
Running Book Examples
generate a tree structure
Ant task to delete directory contents