CoreFTP Server Version 2.0 build 699 64bit
Server 2012 R2
hi,
i need to lock files while uploading or downloading.
I read, that the best method would be a temporary folder and then transfering the final files to the real folder. (atomic)
We host a SFTP Server openSSH.
The customer will upload files to our server via SFTP.
And in the next step our server software will import the files every 5 minutes from the shared local folder.
But when our software trys to import while the customer is uploading, we get file errors.
How can i manage this with coreftp?
Thank you very much
Lock files during down/upload
-
- Site Admin
- Posts: 987
- Joined: Mon Mar 24, 2003 4:37 am
Re: Lock files during down/upload
Have the client upload to a temporarily directory. When the transfer completes, rename it to the destination directory. With Core FTP client this is done using the RNFR and RNTO commands.