IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 12694


Ignore:
Timestamp:
Mar 30, 2007, 10:06:08 AM (19 years ago)
Author:
Paul Price
Message:

Make directory if it doesn't exist.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippScripts/scripts/detrend_reject_exp.pl

    r12679 r12694  
    1717use PS::IPP::Metadata::List qw( parse_md_list );
    1818use Statistics::Descriptive;
     19use File::Spec;
    1920
    2021use PS::IPP::Config qw(
     
    125126    $workdir = $ipprc->convert_filename_absolute( $workdir );
    126127    my $subdir = "$camera.$det_type.$det_id";
    127     $logName = File::Spec->catfile( $workdir, $subdir, $logName );
     128    $workdir = File::Spec->catdir( $workdir, $subdir );
     129    system "mkdir -p $workdir" unless -d $workdir;
     130    $logName = File::Spec->catfile( $workdir, $logName );
    128131}
    129132my $logFile;
Note: See TracChangeset for help on using the changeset viewer.