IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 25, 2007, 6:41:27 PM (19 years ago)
Author:
magnier
Message:

INPUT files pass pmConfigConvertFilename create == false

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/camera/pmFPAfileDefine.c

    r11292 r11304  
    286286    }
    287287
    288     bool create = file->mode == PM_FPA_MODE_WRITE ? true : false;
    289     psString realName = pmConfigConvertFilename (infiles->data[0], config, create);
     288    // this function is implicitly an INPUT operation: do not create the file
     289    psString realName = pmConfigConvertFilename (infiles->data[0], config, false);
    290290    if (!realName) {
    291291        psError(PS_ERR_IO, false, "Failed to convert file name %s\n", (char *) infiles->data[0]);
     
    367367    for (int i = 0; i < infiles->n; i++) {
    368368        if (i > 0) {
    369             bool create = file->mode == PM_FPA_MODE_WRITE ? true : false;
    370             psString realName = pmConfigConvertFilename (infiles->data[i], config, create);
     369            // this function is implicitly an INPUT operation: do not create the file
     370            psString realName = pmConfigConvertFilename (infiles->data[i], config, false);
    371371            if (!realName) {
    372372                psError(PS_ERR_IO, false, "Failed to convert file name %s", (char *) infiles->data[i]);
     
    492492    // save the association on file->names
    493493    for (int i = 0; i < infiles->n; i++) {
    494         bool create = file->mode == PM_FPA_MODE_WRITE ? true : false;
    495         psString realName = pmConfigConvertFilename (infiles->data[i], config, create);
     494        // this function is implicitly an INPUT operation: do not create the file
     495        psString realName = pmConfigConvertFilename (infiles->data[i], config, false);
    496496        if (!realName) {
    497497            psError(PS_ERR_IO, false, "Failed to convert file name %s", (char *) infiles->data[i]);
     
    727727
    728728    // Prepend the global path to the file rule
    729     bool create = file->mode == PM_FPA_MODE_WRITE ? true : false;
    730     psString tmpName = pmConfigConvertFilename (file->filerule, config, create);
     729    // this function is implicitly an INPUT operation: do not create the file
     730    psString tmpName = pmConfigConvertFilename (file->filerule, config, false);
    731731    psFree (file->filerule);
    732732    file->filerule = tmpName;
Note: See TracChangeset for help on using the changeset viewer.