Hello ,
I want to downlaod from my FTP server sevral files
I don’t know how many files there is and what is their name
how can I make a script that download the all directory ?
I have found a script here but it is was for uplaoding.
I have try to make it work for downloading - without any success
:local FTPserverAddress "10.0.0.50";
:local FTPuser "user";
:local FTPpass "123456";
:foreach FILE in=[/file find] do={
:local name [/file get $FILE name];
/tool fetch address="$FTPserverAddress" dst-path="$name" src-path="$name" user="$FTPuser" mode=ftp password="$FTPpass";
}
what do I need to change?
or maybe to do something else?
Thanks ,