Topic "put and move one by one"

Author Message
ilbuonsik
[View user's profile]

Joined: 2013-11-25
Posts: 2
Location: Milan
Good morning,
I have this situation: I have to upload via sftp files from a folder where files are stored continuously. and after uploaded I have to move into a folder (/processed)

So I'm searching the right way to upload multiples files one by one and move into a backup folder as soon as uploaded.
"one by one" is the main feature because if I move all the files, maybe I move also some new files that I haven't uploaded yet.

can someone help me?

thanks in advance
andrea
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Simple solution: Move the files from the local folder to another local temporary location. Upload all files from there. And then move them to the processed folder.

For more sophisticated solution, use .NET assembly:
https://winscp.net/eng/docs/script_local_move_after_successful_upload

Last edited by martin on 2013-11-25; edited 1 time in total
ilbuonsik
[View user's profile]

Joined: 2013-11-25
Posts: 2
Location: Milan
thanks!
nice and simple workaround, I'll do in this way
andrea
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License