- or download this
my $folder = path( $current, $to, $ts, $base_dir )->mkpath;
- or download this
my $folder_path = path( $current, $to, $ts, $base_dir );
$folder_path->mkpath;
# This will print the path regardless if the path already existed or n
+ot
print "My folder path is $folder_path\n";
- or download this
my $mkpath_return_value = $folder_path->mkpath;
# The value of $mkpath_return_value will be equal to the number of dir
+s created (since the return value will be a list that is forced into
# scalar context), or it will be equal to zero if the path already exi
+sted.
- or download this
my @dirs = $folder_path->mkpath;