Welcome to the VanDyke Software Forums

Join the discussion today!

Go Back   VanDyke Software Forums > Secure Shell


Thread Tools Display Modes
Old 10-02-2018, 01:58 PM
kadams kadams is offline
Registered User
Join Date: Oct 2018
Posts: 2
Files locked while being transferred?


We are using VShell for integration processes to transfer files from back office application to our SWIFT client.

The business is concerned that partial files (while being transferred) will be processed.

Is anyone aware of any file lock placed on files while they are being transferred to a Virtual Root folder?

FWIW, I have been using VShell for years and have never run into an issue where a partial file is processed by the client which periodically runs a check on the drop folder.

Reply With Quote
Old 10-02-2018, 03:55 PM
ekoranyi ekoranyi is offline
VanDyke Technical Support
Join Date: Jan 2017
Posts: 654
Hi kadams,

VShell does not currently have a reliable option for locking a file during transfer. Depending on the version of SFTP used, the client that is uploading, and other variables, the ability to lock/unlock files may change.

I have recorded your idea in our database of VShell feature requests so that the product director can evaluate it for possible inclusion in a future release. Should a version of VShell become available with this feature, we will be sure to let you know. If you would prefer to be notified directly please send an email to Support@VanDyke.com with "Feature Request Forum Post 13273" in the subject line.

In the meantime, there are a few strategies I've seen to help reduce the chance of this happening. The first is to upload file into a sort of "temp" directory then use a VShell Trigger to move the file to the final directory after the upload is complete. Although there is still a window where a partial file could be read, generally that window is smaller during a local transfer vs. a network upload.

Another, more surefire, option would be to adopt a naming convention that helps your client decide which files to process. As an example, you could upload a file and after the upload completes successfully rename the file to end in .done (FileA.txt > FileA.txt.done). Your client would then know that only files ending in .done should be processed.

Do either of these options seem like they would be a viable option for you?

VanDyke Software
Technical Support
(505) 332-5730
Reply With Quote
Old 10-04-2018, 09:30 AM
kadams kadams is offline
Registered User
Join Date: Oct 2018
Posts: 2
Thumbs up

Thanks for the quick reply and recommendations.

We were considering using the temp dir method, but your second recommendation I think will work much better.

Appreciate it!
Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -6. The time now is 08:10 PM.