IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 16865


Ignore:
Timestamp:
Mar 6, 2008, 4:20:54 PM (18 years ago)
Author:
Paul Price
Message:

Need to resolve name when deleting.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppStack/src/ppStackLoop.c

    r16863 r16865  
    530530            maskFits->data[i] = NULL;
    531531            weightFits->data[i] = NULL;
    532             if (tempDelete && (unlink(imageNames->data[i]) || unlink(maskNames->data[i]) ||
    533                                unlink(weightNames->data[i]))) {
    534                 psWarning("Unable to delete temporary files for image %d", i);
     532            if (tempDelete) {
     533                psString imageResolved = pmConfigConvertFilename(imageNames->data[i], config, false);
     534                psString maskResolved = pmConfigConvertFilename(maskNames->data[i], config, false);
     535                psString weightResolved = pmConfigConvertFilename(weightNames->data[i], config, false);
     536                if (unlink(imageResolved) == -1 || unlink(maskResolved) == -1 ||
     537                    unlink(weightResolved) == -1) {
     538                    psWarning("Unable to delete temporary files for image %d", i);
     539                }
     540                psFree(imageResolved);
     541                psFree(maskResolved);
     542                psFree(weightResolved);
    535543            }
    536544        }
Note: See TracChangeset for help on using the changeset viewer.