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.

TEST=./gft_upload some_file curl:ftp://localhost # pass, seeing curl commands.

Change-Id: I4c993cf973a1e2a23631ae43f912d10215dad764
Tested-by: Hung-Te Lin <>
Reviewed-by: Hung-Te Lin <>
Commit-Ready: Hung-Te Lin <>
1 file changed