On 4 Apr 2007 06:15:28 -0700, James Newell <[EMAIL PROTECTED]> wrote:
> Hi.
> I am having a problem on Xulrunner 1.9a4 with
> nsIFile.directoryEntries.hasMoreElements. It returns true leaving my
> app in an endless loop, getNext returning the same file object again
> and again.
>
My guess is .directoryEntries returns a new enumerator each time you
access it. Try
var entries = file.directoryEntries;
while (entries.hasMoreElements()) {
..
entries.getNext();
}
Nickolay
_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom