Author and all-around good cowpoke
Posts: 13078
posted 14 years ago
If you have 900,000 files in a single folder, there is no way to avoid having a plain listFiles() create 900,000 objects.
Is there some regularity in file naming or date that you could use to work with smaller subsets?
For example, all files with names starting "a", as accomplished by a FileNameFilter.
Alternately - depending on your operating system, run a system command that generates a text list of all file names and work with that list one file at a time.
Bill