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
Use curl with find to recursively upload all files from a specific directory:
curl
find
find mydir -type f -exec curl -u xxx:psw --ftp-create-dirs -T {} ftp://192.168.1.158/public/demon_test/{} \;
instead of curl, use wput (not to be confused with wget).