[dev] Folder List

Rick Emery rick at emery.homelinux.net
Thu Jan 8 12:14:57 PST 2004


Quoting Rick Emery <rick at emery.homelinux.net>:

> For now, I've decided to work on the problem of folders being duplicated in
> the
> folder list; I'll try to track down the errors later.
>
> This is what I know so far; in Tree.php, function next(), after line 587
> (because of my various debugging lines, the numbers might not be exact; this
> is the line - $this->_currkey++), I var_dump $this->_tree, $this->_currkey,
> and $this->current().
>
> $this->tree lists every folder from my home directory once (no duplicates).
> $this->_currkey gets incremented each time.
> $this->current() returns each folder (from the mail/ directory in my home
> directory) twice (despite _currkey being incremented).

OK, I've determined that $this->_parent[] is where the folders are being
duplicated, but only the folders in the "mail" directory; other folders in my
home directory that contain sub-folders are only listed once.

Any ideas? Thanks in advance.

--
Rick Emery

"When once you have tasted flight, you will forever walk the Earth
 with your eyes turned skyward, for there you have been, and there
 you will always long to return"
                                              -- Leonardo Da Vinci



More information about the dev mailing list