objFtp ==> is edtFTP component object
My program is as follow:
//Check changedirectory to correct directory
MainFTP.objWriteFileLog.DebugWrite("step 6_ChangeWorkingDirectory Before?Server??? = {objFtp.ServerDirectory}?MainFTP.vFTP_PARA[16] = {MainFTP.vFTP_PARA[16]}", MainFTP.sMsgGUID);
objFtp.ChangeWorkingDirectory(MainFTP.vFTP_PARA[16]); ==> only change to MainFTP.vFTP_PARA[16] = /dw/ftpdata/ftpucc1/upload
MainFTP.objWriteFileLog.DebugWrite("DO_FTP.doSend_FTP()", $"step 6_ChangeWorkingDirectory AFTER?Server??? = {objFtp.ServerDirectory}", MainFTP.sMsgGUID);
MainFTP.objWriteFileLog.DebugWrite("DO_FTP.doSend_FTP()", $"step 7_UploadFile Before?Server???:{objFtp.ServerDirectory}?UploadFile:MainFTP.sBufSendName={MainFTP.sBufSendName.ToString()}", MainFTP.sMsgGUID);
objFtp.UploadFile(sMainFilePath + MainFTP.sBufSendName.ToString(), MainFTP.sBufSendName.ToString());
MainFTP.objWriteFileLog.DebugWrite("DO_FTP.doSend_FTP()", $"7_UploadFile AFTER?Server???:{objFtp.ServerDirectory}", MainFTP.sMsgGUID);
=================
detail as up message (you can check the program and my log, edtFTP log), and then you will see step 6. ==> step 7 ; 7 only doing uploadfile() , and 6 only doing change to [/dw/ftpdata/ftpucc1/upload])
and then, you can check edtftp log and my log of program , you will see the "uploadfile()" method do two action, first is change to root folder, and second step is upload file.
so your should check the action of "uploadfile()" method.