manuerwin / joplin-plugin-attache

Mass replacement of resources such as resized image files.
GNU General Public License v3.0
11 stars 0 forks source link

Files not moved if destination file already exists #11

Closed manuerwin closed 2 years ago

manuerwin commented 2 years ago

How to reproduce

  1. Run Replace Resources for test resource
  2. Do NOT remove files from "Step 2 - Resource Replaced" directory
  3. Run Replace Resources for the same test resource
  4. Error in dev console ERROR - moving files to step 2 directory: Error: dest already exists.
  5. Neither file nor .REPLACE file have been moved.

It's an error because the file has already replaced the resource and this is simply a file structure move for "view/audit" purpose. AND this is a follow-up replacement, the original one already worked.