On our server we have a process which goes through directories and converts mp3 files if they are not in the correct format.
It converts to a temp directory and then overwrites the original if the conversion was successful.
If somebody presses the cancel button during the conversion the following is true
if (dMC.WasConvError == 0 && File.Exists(destFile))
and so we overwrite the old one
BUT the new file is not complete so we lose data.
How can we tell when this has happened?
It converts to a temp directory and then overwrites the original if the conversion was successful.
If somebody presses the cancel button during the conversion the following is true
if (dMC.WasConvError == 0 && File.Exists(destFile))
and so we overwrite the old one
BUT the new file is not complete so we lose data.
How can we tell when this has happened?
Comment