I want to upload all the files in one directory, and I know how to upload one file using curl like this :
curl -T "local/xxx.suffix" -u xxx:psw "ftp://192.168.1.158/public/demon_test/xxx.suffix"
How can I upload all the files (subdirectory) in the current directory to an FTP server?