garygrossgarten / github-action-scp

⬆️ Copy a folder to a remote server using SSH

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Provide mechanism to upload 'atomically'

virtuald opened this issue · comments

If you're uploading to a web server root, clients can access the file before the file has finished uploading. Tools like rsync deal with this by uploading to a temporary filename and then renaming it. It appears that most openssh sftp servers support a posix rename extension that would make this approach possible.