[Bioperl-l] cleanup of tempfiles

Ewan Birney birney@ebi.ac.uk
Mon, 30 Apr 2001 15:52:20 +0100 (BST)


On Mon, 30 Apr 2001, Jason Stajich wrote:

> [not a very exciting topic, but ... ]
> 
> In the event one does not have File::Temp we have implemented our own
> tempfile/tempdir creation.  We attempt to remove all created tempfiles and
> remove tempdirs (with all containing files) which are created.  We do not
> really cleanup a tempdir which contains files at this point because rmdir
> will fail if the dir contains files.
> 
> Solutions: 
> o use File::Path's rmtree method to cleanup a dir.  A new dependency.
> o require File::Temp to be installed and get rid of our implementation
> o [sigh] import the rmtree method from File::Path
> 
> Any opinions?  I really just want to go with the 2nd choice, but I know it
> is silly to force people to have File::Temp installed to run bioperl.
> On the other hand, we've already essentially imported File::Temp into
> Root::IO, might as well import rmtree too... 

I think <<sigh>> is the way to go here. .... 

> 
> -Jason
> 
> Jason Stajich
> jason@chg.mc.duke.edu
> Center for Human Genetics
> Duke University Medical Center 
> http://www.chg.duke.edu/ 
> 
> 
> 
> _______________________________________________
> Bioperl-l mailing list
> Bioperl-l@bioperl.org
> http://bioperl.org/mailman/listinfo/bioperl-l
> 

-----------------------------------------------------------------
Ewan Birney. Mobile: +44 (0)7970 151230, Work: +44 1223 494420
<birney@ebi.ac.uk>. 
-----------------------------------------------------------------