Faster than fso.Folder?

Date : Sat, 09 Jul 2005 01:22:34 +0000
To : xsi(at)Softimage.COM
From : "brad" <brad(at)cg-soup.com>
Subject : Faster than fso.Folder?
Anybody know a faster way to get a list of subdirectories in jscript than using the fileSystemObject?
Using the following example lifted directly from the msdn docs:

var fso, f, fc, s;
   fso = new ActiveXObject("Scripting.FileSystemObject");
   f = fso.GetFolder(folderspec);
   fc = new Enumerator(f.SubFolders);
   s = "";
   for (; !fc.atEnd(); fc.moveNext())
   {
      s += fc.item();
      s += "<br>";
   }
   return(s);


Running on the network here, it's taking almost second just to return a list of 20 subdirectory names, which is too darn slow. Python has some methods that should do this lickety split, but we just wanted to check if anyone's found a native jscript technique before we build a wrapper.

-Brad
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi


Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available.
This site supposedly brought to you by Benjamin Grosser and the Imaging Technology Group.