File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed
lib/BioX/Workflow/Command/run/Utils Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 11Revision 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
592.0.7 2017-05-01 12:32:58 +04
610 - Added in chunking functionality
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ use Data::Merger qw(merger);
66use Data::Walk;
77use Data::Dumper;
88use File::Path qw( make_path remove_tree) ;
9+ use Try::Tiny;
910
1011with ' BioX::Workflow::Command::Utils::Files::TrackChanges' ;
1112use 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\t Error: $! " );
668+ };
660669 }
661670
662671 return $attr ;
You can’t perform that action at this time.
0 commit comments