Page 1 of 1

FTP, I still can't understand how it works

Posted: Fri Apr 21, 2023 4:27 am
by anthonyystwarty
I know it's a simple operation, but I don't know how to use it. How do I make FTP folders and files synchronized with my local folder? How do I make any changes made on FTP automatically change to the local folder?
I thought that as in the image below would solve it, but after the first task, the command deletes the files from the ftp and local folders. Can you help me please?

Re: FTP, I still can't understand how it works

Posted: Fri Apr 21, 2023 7:09 am
by Oleg
Switch off the option "Exact copy".

Note that the "Exact Copy" mode first copies newer files from the source folder to the target folder and then removes all files from the target folder that are absent in the source folder.
Read this in RoboTask documentation (and help system): https://robotask.com/help/index.html?ss ... zation.htm

Re: FTP, I still can't understand how it works

Posted: Fri Apr 21, 2023 1:49 pm
by Oleg
I have just tested this mode. It works correctly.
If I remove some file from local folder next time the action download it again.
If I create some new file in local folder next time the action removes it from local folder.
The remote folder remains unchanged.
Maybe your problem is somewhere else: for example another task with synchronization from local to remote
FTPSync.png
FTPSync.png (16.41 KiB) Viewed 1955 times

Re: FTP, I still can't understand how it works

Posted: Fri Apr 21, 2023 1:53 pm
by anthonyystwarty
Hello Oleg, thank you very much for the answer! I noticed that in remote folder I was using the forward slash \ , after I changed it to /, it worked perfect, could that be it? Another situation is that the empty folders are not being deleted, what function could you use to also delete empty folders, when an empty folder is deleted in the remote, it also deletes it from the local one?...Thank you!

Re: FTP, I still can't understand how it works

Posted: Fri Apr 21, 2023 2:10 pm
by Oleg
hardly...
I don't think that the problem here.

Re: FTP, I still can't understand how it works

Posted: Fri Apr 21, 2023 9:54 pm
by anthonyystwarty
Oleg wrote: Fri Apr 21, 2023 2:10 pm hardly...
I don't think that the problem here.
Thak you