Lock files during down/upload

Core FTP Server questions and answers
Post Reply
pg2020
Posts: 1
Joined: Mon Jan 11, 2021 8:17 am

Lock files during down/upload

Post by pg2020 »

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 😊
ForumAdmin
Site Admin
Posts: 987
Joined: Mon Mar 24, 2003 4:37 am

Re: Lock files during down/upload

Post by ForumAdmin »

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.
Post Reply