Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

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

bump

bump

Hi, I am still having this issue, does anyone know a fix?
smacrito

Addition

Tried
$session.SessionLogPath("C:\Users\USERNAME\Desktop")


But got error

Method invocation failed because [WinSCP.Session] does not contain a method named 'SessionLogPath'.
smacrito

Attribute Error with FtpUseMlsd enabled

Hi,

I copied over the suggested script for powershell to upload a list of files. I attempted to do this, but am getting an overwrite error.

So, I have tried to delete the files first like so

foreach ($line in $lines)
{
    Write-Host "Deleting $line ..."
    $session.RemoveFiles($line)
}


But it throws

{WinSCP.SessionRemoteException: Can't get attributes of file


Even when specifying
$sessionOptions.AddRawSettings("FtpUseMlsd","1")


As recommended.

I would like to attach a log, but do not know how to produce one from the .net powershell script. Please inform me how and i am happy to provide it.