Closed madding closed 6 years ago
Thank you for the pull request.
I’ve been trying to find the deeper issue at play here, since FileUtils.mv
in most cases should not throw an error when the destination file already exists. Where it does throw an error is when the destination exists and is symlinked to the source file, which can happen when switching from the :compile
installation method to the :copy
method.
I think a simpler solution for this will be to simply call FileUtils.rm(dest, force: true) if File.exist?(dest)
before each move attempt.
You're right, i fixed it.
When in project installed both gems tinymce-rails-langs and tinymce-rails-imageupload assets compiling with exception:
It's happened because lang file already exists in assets folder. I'm check files and skipping move if files equal.