Skip to content

Commit ccefc46

Browse files
committed
release 2.0.8
1 parent e12271d commit ccefc46

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

Changes

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
Revision history for BioX-Workflow-Command
22

33
{{$NEXT}}
4+
- Cleaned up logging to create a table - no more wall of text!
5+
- Fixed HPC meta to correctly overwrite global when global/local are arrayref of keys
6+
- Follow symbolic links when looking for Samples
7+
- Throw an error when making a directory fails
48

59
2.0.7 2017-05-01 12:32:58 +04
610
- Added in chunking functionality

lib/BioX/Workflow/Command/run/Utils/Rules.pm

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ use Data::Merger qw(merger);
66
use Data::Walk;
77
use Data::Dumper;
88
use File::Path qw(make_path remove_tree);
9+
use Try::Tiny;
910

1011
with 'BioX::Workflow::Command::Utils::Files::TrackChanges';
1112
use BioX::Workflow::Command::Utils::Traits qw(ArrayRefOfStrs);
@@ -655,8 +656,16 @@ sub walk_attr {
655656

656657
$attr->walk_process_data( $self->rule_keys );
657658

658-
if ( $attr->create_outdir ) {
659-
make_path( $attr->outdir );
659+
if ( $attr->create_outdir && !$attr->outdir->is_dir ) {
660+
661+
try {
662+
$attr->outdir->mkpath;
663+
}
664+
catch {
665+
$self->app_log->fatal( "We were not able to make the directory.\n\t"
666+
. $attr->outdir
667+
. "\n\tError: $!" );
668+
};
660669
}
661670

662671
return $attr;

0 commit comments

Comments
 (0)