curl-users
Upload multiple files from a set directory
Date: Fri, 31 Mar 2017 15:15:08 +0000
Hello Friends
I want, with a single call to curl, to upload all files from a local directory to a remote site.
I know how to upload one by one like this:
curl -s --ftp-create-dirs -T C:\iRallyMaster\Textfiles\Website\Omnis7\file1.png -u FTPUSER:FTPPASS ftp://ftp.omae-epa-live.gr/www.omae-epa-live.gr/web/content/RALLY4/<ftp://ftp.omae-epa-live.gr/www.omae-epa-live.gr/web/content/RALLY4/>file1.png
curl -s --ftp-create-dirs -T C:\iRallyMaster\Textfiles\Website\Omnis7\file2.txt -u FTPUSER:FTPPASS ftp://ftp.omae-epa-live.gr/www.omae-epa-live.gr/web/content/RALLY4/<ftp://ftp.omae-epa-live.gr/www.omae-epa-live.gr/web/content/RALLY4/>file2.txt
But I would like to do it with a single call like this:
curl -s --ftp-create-dirs -T C:\iRallyMaster\Textfiles\Website\Omnis7\*.* -u FTPUSER:FTPPASS ftp://ftp.omae-epa-live.gr/www.omae-epa-live.gr/web/content/RALLY4/<ftp://ftp.omae-epa-live.gr/www.omae-epa-live.gr/web/content/RALLY4/>*.*
How it can be done ?
Thanks in advance
Nikos Andritsakis
-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2017-03-31