View Single Post
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 12-21-2011 , 20:16   Re: [ANY] tEasyFTP v0.0.1 (2011-07-24)
Reply With Quote #2

I'm acutally using this btw. Nice work!
You got some typos in your plugin. (Declaring the UploadFile native without the underscore and missing a ! before FileExists(remotetargets.cfg...)

It's working fine for the binary data i'm using it for even and especially on mapchanges.

More suggestions:
Adding those options in CurlUploadFile
PHP Code:
curl_easy_setopt_int(hCurlCURLOPT_FTP_CREATE_MISSING_DIRSCURLFTP_CREATE_DIR);
curl_easy_setopt_int(hCurlCURLOPT_USE_SSLCURLUSESSL_TRY); 
Supporting a "any:data" parameter in the UploadFile native which just gets added to the hTrie_UploadEntry trie on call and passed to the callback forward.

And that +1 in your getFileBasename function seems out of place. Shouldn't that be inside the []?
__________________

Last edited by Peace-Maker; 12-21-2011 at 20:19.
Peace-Maker is offline