Re: Directory/file browser as TreeView



* Ratcliffe, Jeffrey (Peters) <Jeffrey Ratcliffe External eads com> [2006-09-29 14:16]:
Improvements, of course, are welcome.

For fun, I took the whole thing apart, put it back together, took
it apart again, and then put it together again. :-)

Now it uses an idle callback to read directories so the UI never
freezes.

Itâs still suboptimal, though, because it reads each directory in
full in order to do anything with it. It would be better if it
added new filenames as soon as they were read and sorted them on
the fly.

Attached.

Regards,
-- 
#Aristotle
*AUTOLOAD=*_;sub _{s/(.*)::(.*)/print$2,(",$\/"," ")[defined wantarray]/e;$1};
&Just->another->Perl->hacker;

Attachment: fsbrowser
Description: Text document



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]