Hi
Im new to unity and need to parse a folder and its sub folders and files, iwant do this in either javascript or c#. ive looked as some examples i have seen around the net but found them not to work in c#.
is it possable and how, any help you can offer would be of much help.
kev
Look at the MSDN documentation on System.IO.Directory
It offers you the possibility to enumerate through folders and when you find further folders, also recursively through them 
Requirement is that you target standalone though, the webplayer can and will never be able to access folders or anything on the machine. On mobiles you are limited to specific folders, no global access
Thanks dreamora, is there not a soultion for the webplayer that your aware of? using the System.IO.Directory are we locked to windows platform only? im looking for a cross platform soultion.
thanks again
kev
From a web player context, you do not have access to the user’s files or directories. (security concerns)
If you’re looking for a way to just save/load data for them, look up PlayerPrefs.
sorry FizixMan you mis-understand me i dont want access to the users files or folder, what i need is access to folder within the unity location these both local harddrive and http webplayer.
lets say for example i have on my server a webplayer under
http://www.???.com/util/webplayer.html
under this folder i have a sub folder called tools
http://www.???.com/util/tools
i need a method that can parse the tools folder of both files and sub folders recursively, online and offline. ive coded for a very long time and for sure with some pointer help/code of what i need as i just cant yet work out whats required like i say im new to unity and just finding my way around it and its scripting. i can allready read and write basic textfiles and use gameobject its just that part of the project im working on requires the feature to advance.
kev
Make sure you’re trying to access the same domain where the .unity3d file is stored, ala http://unity3d.com/support/documentation/Manual/Security%20Sandbox.html
If you need cross domain access, you’ll need to create a crossdomain.xml with appropriate entries and then use the WWW class (or other HTTP GET implementation) to access the files.