Iterating through multiple folders while connected
Hello, Martin! Hope you are well.
I have been using one of your example scripts (https://winscp.net/eng/docs/script_local_move_after_successful_upload) for some time with great success. I have a new implementation, however, that requires I follow that logic for a series of folders on one site. The workflow is connect, then for each folder in a list, download the files in that folder and, upon successful download, archive them to a separate folder and then proceed to the next folder in the list. A sample config would look like this:
#list of source folders, download folders, and archive folders:
Do you have any examples of using a similar configuration I could base my script on?
Thank you!
VtR
I have been using one of your example scripts (https://winscp.net/eng/docs/script_local_move_after_successful_upload) for some time with great success. I have a new implementation, however, that requires I follow that logic for a series of folders on one site. The workflow is connect, then for each folder in a list, download the files in that folder and, upon successful download, archive them to a separate folder and then proceed to the next folder in the list. A sample config would look like this:
#list of source folders, download folders, and archive folders:
/user/fromFolder1, c:/ftp/downloads/toFolder1, /user/archive/archiveFolder1 /user/fromFolder2, c:/ftp/downloads/toFolder2, /user/archive/archiveFolder2 /user/fromFolder3, c:/ftp/downloads/toFolder3, /user/archive/archiveFolder3 /user/fromFolder4, c:/ftp/downloads/toFolder4, /user/archive/archiveFolder4 /user/fromFolder5, c:/ftp/downloads/toFolder5, /user/archive/archiveFolder5 /user/fromFolder6, c:/ftp/downloads/toFolder6, /user/archive/archiveFolder6 /user/fromFolder7, c:/ftp/downloads/toFolder7, /user/archive/archiveFolder7 /user/fromFolder8, c:/ftp/downloads/toFolder8, /user/archive/archiveFolder8
Do you have any examples of using a similar configuration I could base my script on?
Thank you!
VtR