Auto writes data buffered in memory out to disk before logout
I have some embedded devices connected via FTP. I need to power off the device after copying files via WinSCP. However, powering off the device directly will result in some data loss, so I need to run the "sync" command to write the copied files to the disk. Can I automatically execute the command to write the files to the disk when WinSCP disconnects?