Laforeta / PEROist

Scripts and tools for Kantai Collection modding
Other
11 stars 1 forks source link

Bug in file handling that could lead to a loss of input data #19

Closed Laforeta closed 9 years ago

Laforeta commented 9 years ago

Current file handling in handling goes like the following:

  1. Move 5 files from \ to \temp and copy them to \temp\kanmusu or \temp\abyssal (IMPORT)
  2. Run the process
  3. Move the successfully generated files to \output and delete those with their originals in \temp\kanmusu or \temp\abyssal
  4. Move the originals in \temp\kanmusu or \temp\abyssal without an output to \error
  5. Delete *.swf in \temp

If the batch is terminated early in step 2, then the files being processed remains trapped in \temp and will be deleted in the next run when CLEANUP is called.

Proposed changes

  1. Don't move files in IMPORT
  2. Don't delete originals from root until the output has been generated and successfully exported to \output