I changed upload logic at #37 before.
In this change, plugin will create temporary file at remote SFTP server and rename it after all task completed since plugin user can't know if task was finished or not when some of tasks failed.
However, this change sometimes got permission failure while renaming remote file.
SFTP rename remote file failed. Retrying 1/10 after 0 seconds. Message: Could not determine if file sftp://***/path/to/somewhere is writeable.
I don't know why file rename failed even if plugin is able to upload temporary file.
Anyway, we need to improve upload logic.
I changed upload logic at #37 before.
In this change, plugin will create temporary file at remote SFTP server and rename it after all task completed since plugin user can't know if task was finished or not when some of tasks failed.
However, this change sometimes got permission failure while renaming remote file.
I don't know why file rename failed even if plugin is able to upload temporary file.
Anyway, we need to improve upload logic.