Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: How do I specify the current directory on the Session.PutFiles ?

You can use ./ or Session.HomePath + "/".
RameshMuthiah

How do I specify the current directory on the Session.PutFiles ?

I could be able to transfer files to the remote path sub directories by specifying in the remotePath in the Session PutFiles method but one of my requirement i would like to simply transfer to the current logged in Directory. How do i specify current logged in directory in remotePath ?

public TransferOperationResult PutFiles(
string localPath,
string remotePath,
bool remove = false,
TransferOptions options = null
)

Example:-
--------
session.PutFiles("c:\working\test.txt", "", true).Check(); //would like to know how do specify current logged in directory.