View Single Post
Join Date: Feb 2006
Posts: 2,285
Reputation: masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of 
Solved Threads: 244
masijade's Avatar
masijade masijade is offline Offline
Nearly a Posting Maven

Re: Recursive File List - Help me problem solve please

 
0
  #5
Jan 10th, 2009
Originally Posted by caps_lock View Post
post above: thanks for that, but I dont want to list the roots I want to list the files and files in directories that are in all directories on a computer.
Then what was this?

Originally Posted by caps_lock View Post
I want it to be able to go through all roots (drives)...

With no user intervention, so without including "C:\\" or "." as a string in the source, or without a TextIO.java class.
As that is the part I was responding to. You will need to use that.

I think Ive got some stable code now. But I still want to know how to recursive scan the whole computer and not just a drive. At the moment I'm able to scan "C:\\" or "D:\\" and not both, does any one know how I can make that work?
See above. You can only "recursively" scan each drive/root one at a time. But you can loop over what the above mentioned method returns.

Why does no one ever listen to what I say?
Java Programmer and Sun Systems Administrator

----------------------------------------------

Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
Reply With Quote