Changeset 18734 for branches


Ignore:
Timestamp:
01/13/17 10:11:16 (8 years ago)
Author:
(none)
Message:
add .part to fits files on creation and rename on close
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/FACT++_part_filenames/src/DataWriteFits2.cc

    r18600 r18734  
    172172{
    173173    //Form filename, based on runid and run-type
    174     fFileName = FormFileName(dynamic_pointer_cast<factofits>(fFile)?"fits.fz":"fits");
     174    fFileName = FormFileName(dynamic_pointer_cast<factofits>(fFile)?"fits.fz.part":"fits.part");
    175175
    176176    if (boost::filesystem::exists(fFileName))
     
    354354    }
    355355
     356    boost::filesystem::rename(
     357        fFileName,
     358        fFileName.substr(
     359            0,
     360            fFileName.size() - string(".part").size()
     361        )
     362    );
     363
    356364    return true;
    357365}
Note: See TracChangeset for help on using the changeset viewer.