Hi,
I need to compare local and remote directory (SYNC) but downloading updated files in another directory:
something like this:
or something like this
after SYNC only downloaded files are moved elsewhere
I tried whit FOREACH but in list_type there only REMOTE_FILES (all Files) or LOCAL_FILES (all files).
I'd need a list_type like DOWNLADED_FILES with only the downloaded files....
Can you help me?
I need to compare local and remote directory (SYNC) but downloading updated files in another directory:
something like this:
FTP Script
after SYNC only downloaded files are moved elsewhere
I tried whit FOREACH but in list_type there only REMOTE_FILES (all Files) or LOCAL_FILES (all files).
I'd need a list_type like DOWNLADED_FILES with only the downloaded files....
Can you help me?
Hello, I am sorry but this is not possible. SYNC does not have that functionality.
liked Script FTP? Try our other product Email Parser
I would try this... Without subdirs...
FTP Script
- $localfolder = "C:\Folder1"
- $remotefolder = "/Folder2"
- $downloadfolder = "C:\Folder3"
Note Caio that the Wandrey example only works if no subdirectories are used. And it would fail if FTP server and ScriptFTP does not have the same local time.
Thanks Wandrey. I am sure this will be useful anyway.
Thanks Wandrey. I am sure this will be useful anyway.
liked Script FTP? Try our other product Email Parser
I showed the possible direction
yes .... but the timing is more complicated than that.
I realized that my idea is wrong. I have to find another way
tank you
I realized that my idea is wrong. I have to find another way
tank you
And it would fail if FTP server and ScriptFTP does not have the same local time.There is a proposal to use in GETFILETIME command SETCLOCKDIFF value. Or maybe do new command GETCLOCKDIFF to use as you'd like...
- All times are UTC -