radiantlab / HDRICalibrationTool

A free, open-source cross-platform interface to help Radiance automate the merging of multiple LDR images into an HDR image.
GNU General Public License v3.0
4 stars 1 forks source link

Delete file in tmp folder if it exists at start of pipeline #95

Closed shantimorrell closed 5 months ago

shantimorrell commented 5 months ago

If we either:

  1. delete the entire tmp folder within the output folder the user specified at the beginning of the run, or
  2. delete only the file in the tmp folder that shares the same name as whatever the user just selected,

it should allow the HDRGen command to succeed without failing, since this is the only step that will not overwrite the file if it already exists.

shantimorrell commented 5 months ago

As per Alex's find, we can use -F option with hdrgen to overwrite file if it exists