Skip to content

Commit

Permalink
Remove directories in a cross-platform way
Browse files Browse the repository at this point in the history
Signed-off-by: Jonathan Chang <jchang641@gmail.com>
  • Loading branch information
jonchang committed Aug 20, 2012
1 parent 2c03068 commit a762a08
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion script/VelvetOptimiser
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ use VelvetOpt::Utils;
use Data::Dumper;
use Storable qw (freeze thaw);
use Getopt::Long;
use File::Path qw(remove_tree);


#
Expand Down Expand Up @@ -379,7 +380,7 @@ else {
foreach my $key(keys %assemblies){
unless($key == $bestId){
my $dir = $assembliesObjs{$key}->{ass_dir};
system('rm', '-r', '--preserve-root', $dir);
remove_tree($dir, {safe => 1});
}
}
unless ($finaldir eq "."){
Expand Down

0 comments on commit a762a08

Please sign in to comment.