gooftool: support curl options for FTP protocol

Add "curl:ftp[s]://userid@host" protocol.

The default FTP is still using Python ftplib (for backward compatible and better
connection status checking), but partners can now select curl-based FTP for
special params like --ftp-create-dirs.

BUG=chrome-os-partner:6236
TEST=./gft_upload some_file curl:ftp://localhost # pass, seeing curl commands.

Change-Id: I4c993cf973a1e2a23631ae43f912d10215dad764
Reviewed-on: https://gerrit.chromium.org/gerrit/11310
Tested-by: Hung-Te Lin <hungte@chromium.org>
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
Commit-Ready: Hung-Te Lin <hungte@chromium.org>
1 file changed