Closed xTCry closed 1 year ago
you can try replace the plugin's dll manually, this error may caused by file permission configure error.
Yes, it is logical that can replace file manually (which I had to do in the end). It's just convenient when there is an opportunity to update the plugin from browser on phone.
Maybe it's worth adding a check for an already existing backup file, and if possible, just do not replace it?
+ bool existsBackup = File.Exists(backupPath);
- File.Move(currentPath, backupPath);
+ if (!existsBackup) {
+ File.Move(currentPath, backupPath);
+ }
In this case, the last working plugin will be deleted after a successful restart of ASF or restored if an error occurs.
A problem has been identified that when updating the plugin again, without restarting ASF, an error occurs when creating a backup again.
A solution to the problem: Replacing a new plugin file if the backup file already exists