aces / Loris-MRI

The set of scripts that preprocess and insert MRI data into the database.
10 stars 50 forks source link

[get_dicom_files] Argument to -outdir should be validated #1007

Closed nicolasbrossard closed 1 year ago

nicolasbrossard commented 1 year ago

I ran script get_dicom_files.pl and supplied the name of a directory that does not exist to option -outdir. I got this:

Error in tempdir() using allo/get_dicom_files.pl.XXXX: Parent directory (allo) does not exist at /data1/loris/bin/mri/tools/get_dicom_files.pl line 207.

The script should validate the outdir argument instead of crashing.