Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Warns if setting save_tempfiles does nothing. No other changes.
  • Loading branch information
daisieh committed Sep 7, 2012
1 parent d876623 commit 76f9253
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Bio/Tools/Run/WrapperBase.pm
Expand Up @@ -179,14 +179,18 @@ sub no_param_checks{
Function: Get/set the choice of if tempfiles in the temp dir (see tempdir())
are kept or cleaned up. Default is '0', ie. delete temp files.
NB: This must be set to the desired value PRIOR to first creating
a temp dir with tempdir().
a temp dir with tempdir(). Any attempt to set this after tempdir creation will get a warning.
Returns : boolean
Args : none to get, boolean to set
=cut

sub save_tempfiles{
my $self = shift;
my @args = @_;
if ((@args[0]) && (exists ($self->{'_tmpdir'}))) {
$self->warn ("Tempdir already created; setting save_tempfiles will not affect cleanup behavior.");
}
return $self->io->save_tempfiles(@_);
}

Expand Down

0 comments on commit 76f9253

Please sign in to comment.