Only 49 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



  • Post Reply Bookmark Topic Watch Topic
  • New Topic

File Class  RSS feed

 
Mohsinali memon
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how can i remove floppy disk and cd rom from the static method of File
class listRoots()
 
Marilyn de Queiroz
Sheriff
Posts: 9079
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can't. But you can deal with the results.
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey, another first poster! Welcome, Mohsinali.
The listRoots method will give you an array of File objects. I've never had to solve the problem of identifying removable media, and I don't see anything obvious on the File object that's going to help. The doc for listRoots says you may also get mapped network drives on Windows, so you might have even more challenges than you know.
Can you tell us more of your requirements? Why is it important to remove them from your list? Maybe we'll think of another way around the problem.
 
Mohsinali memon
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanx for the reply
Actually i am making a fast file searcher.
so i am making a database containing all files
which are in the hard disk.
thats y i want to remove the removable media
would u please help in this regard.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!