FTP Download Only new or changed files - VisualCron - Forum

Community forum

Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
View
Go to last post Go to first unread
Offline LloydMcDaniel  
#1 Posted : Monday, December 9, 2019 5:14:51 AM(UTC)
LloydMcDaniel

Rank: Free support

Joined: 12/5/2019(UTC)
Posts: 2
United States
Location: Kentucky, Louisville

Hello, new to visualcron.
I want to setup a task to connect to an FTP and download any new or changed files.
My concern with sync is that we will delete the files from the destination folder when they are used but we need to remember it was downloaded and not download again.

Is there something built in or do we need to set the program to read all files on the FTP, Log what is downloaded, then on the next connection compare the file list to the downloaded log?

Thank you
Offline ErikC  
#2 Posted : Monday, December 9, 2019 8:45:40 AM(UTC)
ErikC

Rank: Paid support

Joined: 2/26/2008(UTC)
Posts: 1,520
Netherlands
Location: Amsterdam

Thanks: 114 times
Was thanked: 220 time(s) in 188 post(s)
Hi LloydMcDaniel, welcome to the forum!

What you can do here is:
  1. FTP List file task, only showing files from last few days
  2. (loop start) FTP download task, downloading current loop filename
  3. (loop end) File Write task writing the downloaded filename in a file

The loop loops over all the filenames from task nr 1.
On task 2 and 3, there is a condition checking if the loop filename is in the file from task 3. If so the action is Next, if not in there, the action is Continue.

That should do the trick (as I'm doing it also this way)

[EDIT]This is only for new files, you could use this kind of meganism to store also the size or date and check that also (more complicated)[/EDIT]

Regards,
Erik

Edited by user Monday, December 9, 2019 9:17:47 AM(UTC)  | Reason: Not specified

Uses Visualcron since 2006.
Users browsing this topic
Guest
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Scroll to Top