curl-library
Command line switch to force overwrite
Date: Mon, 1 Feb 2016 16:21:59 +1100
Folks,
I've been having great success with this application both in developing
custom applications and just using the command line.
I'm having trouble with the command line operation.
For testing I'm uploading to DropBox and it's working for the first run.
eg Empty directory on DropBox is populated with new files uploaded with
curl.exe.
Running the script again though shows no overwrite.
This also occurs under normal FTP.
My question, is there some intelligence in curl that works out if the
file being uploaded and the target directory file are the same then no
upload or is there a switch that FORCES overwrite?
My reading of the man page seems to imply overwrite UNLESS a switch is
used to eg. append -a.
I can't find a force overwrite switch.
Current put
curl.exe -H "Authorization: Bearer <TOKEN remove for security>"
https://api-content.dropbox.com/1/files_put/auto/Audit_Report_Upload/ -T
"C:\DATA\Network_Audit.xlsx"
Any guidance appreciated.
Andrew
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2016-02-01