about PutFile - WeOnlyDo Discussion board

about PutFile (General questions)

by syphax, Tuesday, May 29, 2012, 00:01 (4359 days ago)

Hi,

I am new to this. I was maintaining some asp code and I found the following:

set ftpsrv = Server.CreateObject( WeOnlyDo.wodSFTPCom.1 )
ftpsrv.RealPath CStr(temp)
ftpsrv.MakeDir CStr(temp)
ftpsrv.PutFile path

The path above is the local path. temp is remote path.

The above are the main parts that I have questions about. Basically, the script checks a remote path, if it doesn't exist, it will create it. My question is, based on the manual, PutFile requires a local path and remote path, but in the code I have, only local path is defined. I was wondering how does it know where to put the files in the remote folder? Is it because there is a MakeDir before it?

In the manual, it says both localFile and remoteFile are optional. What happens when you only provide one path?

Thank you,
Zig


Complete thread: