It is a feature to me. I can't think of an easy way to work around it otherwise.
Using a temporary file like this seems common. In fact dput used to do this, which is why I consider it a regression.
Similar advice here: https://stackoverflow.com/questions/25119076/how-to-do-an-atomic-sftp-file-transfer-using-jsch-so-that-the-file-is-not-acces
It is a feature to me. I can't think of an easy way to work around it otherwise.
Using a temporary file like this seems common. In fact dput used to do this, which is why I consider it a regression.
Similar advice here: https:/ /stackoverflow. com/questions/ 25119076/ how-to- do-an-atomic- sftp-file- transfer- using-jsch- so-that- the-file- is-not- acces