/build/static/layout/Breadcrumb_cap_w.png

FileSystemObject Memory Question

Greetings,

I've written a file copy script. The script, which is complete, works really well. It basically runs through each file using FileSystemObject and sorts the files based on date, into a directory based on the week it was created (1-52).

However, the initial time I run the script it will run against 2 million files (or more). Does FileSystemObject load all the file names into memory and then look at them or does it look at them one at a time? I'm concerned the server will not be able to handle loading that many files into memory.

Thank you in advance!!
Eddie

0 Comments   [ + ] Show comments

Answers (1)

Posted by: bullfighter 12 years ago
Yellow Belt
0
23 views and no replies, perhaps I did a poor job of explaining my concern.

My simplified question is this, when FSO looks at the contents of a directory does it load the entire list of files into memory? And if so, will manipulating a folder with 2 million plus files be a problem?

Any assistance is greatly appreciated!
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ