On Mon, 29 Mar 2010 10:22:19 -0500
Terry Brown <terry_n_br...@yahoo.com> wrote:

> > Anyway, with some valuable notes in that tree and unsaved changes in others 
> > I accidentally double clicked a large binary file, cause active_path.py to 
> > try and load it into a @shadow node with @auto parsing.  After waiting a 
> > few minutes for it to return I went to lunch, and fortunately it had 
> > returned when I got back.  I carefully deleted the containing directory 
> > entry.  
> 
> A similar problem occurs when you try and index a directory which contains 
> 4823 subdirectories (just counting directories, not files).  Not quite sure 
> what the best solution is.

active_path.py now asks before loading binary files (chr(0) in first 100 bytes 
of the file) or files exceeding a user configurable size (default 1000000 
bytes).  Recursive operations abort after a user configurable amount of time 
(default 10 seconds).

No tests are made for files loaded through the autoload system, if you hit a 4 
terabyte binary file ending in .py, and you have .py files set up for autoload, 
oh well :-)

Cheers -Terry

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to leo-edi...@googlegroups.com.
To unsubscribe from this group, send email to 
leo-editor+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en.

Reply via email to