Skip to content

Commit

Permalink
change mkdir to make_path (#978)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmadjar authored May 5, 2023
1 parent 68cdd12 commit 8de8ce0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion uploadNeuroDB/bin/deface_minipipe.pl
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

use strict;
use File::Basename;
use File::Path qw(make_path);
use File::Temp qw/ tempfile tempdir /;
use Getopt::Long;

Expand Down Expand Up @@ -88,7 +89,7 @@

# create the directory where the final outputs will be saved
unless (-e $output_dir) {
mkdir($output_dir) or print "\nCould not create directory '$output_dir'. Error is: '$!'\n";
make_path($output_dir) or print "\nCould not create directory '$output_dir'. Error is: '$!'\n";
}


Expand Down

0 comments on commit 8de8ce0

Please sign in to comment.