$session.moveFile - no winSCP TransferOperationResult object returned

Advertisement

giermoivi
Guest

$session.moveFile - no winSCP TransferOperationResult object returned

Hello

I am attempting to move a file from one ftp dir to another. since all work is done on ftp end, i just use the move command.

I would like it to reutrn status of move, but for the life of me cant figure it out, no 1/0, and no winSCP TransferOperationResult object returned ??


$moveResult = $session.moveFile( ($fullFileName), $successPath)

Any tips???

Thanks for the help

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
27,426
Location:
Prague, Czechia

Re: $session.moveFile - no winSCP TransferOperationResult object returned

The Session.MoveFile throws an exception on error.

Reply with quote

Advertisement

You can post new topics in this forum