Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: FileSystemCbject question


Message #1 by "rachel green" <rgreen@e...> on Wed, 14 Nov 2001 21:37:03
--0-412887475-1005830471=:35438
Content-Type: text/plain; charset=us-ascii


 Because a system folders (files) is a tree that you can navigate through using recursivity. It is simple. You can use iterating
functions but it's a little complicated. 
I hope you know recursivity: You navigate through items on the same level, and for each item you check if it has children. If so,
then you navigate through the children checking for each children if it has children too and so on...
To avoid this complicated navigation you could navigate through the children of a selected folder. Each time when the user select a
folder in a list of folders on the same level, you display the children list of the selected folder.
The web servers have usually the functionality to display the content of a virtual folder in the browser. See this functionality and
you could have a good example. PWS and IIS have this feature.
Good luck!
  rachel green <rgreen@e...> wrote: I am writing a function in Javascript that allows the user to browse 
directories on their machine. After reading through the FileSystemObject 
methods and properties, it seems to me that you can get an enumeration of 
all drives on a machine, all subfolders in a folder, and all files in a 
folder. However, I can't figure out how to get an enumeration of all 
folders on a drive. Any suggestions?

Thanks!
Rachel



---------------------------------
Do You Yahoo!?
Find the one for you at Yahoo! Personals.

  Return to Index