I see a Can't get attributes of File" error invoking REmoveFiles from a Powershell script. PutFiles and ListDirectory in same script work fine. Wildcards "*" instead of specific filename also works fine. Help apreciated.
WinScp : 5.1.7
WingFTP Server (Lastest / Debian Linux)
Win2k8R & Win7_32
$sessionOptions = New-Object WinSCP.SessionOptions
$sessionOptions.Protocol = [WinSCP.Protocol]::Ftp
$sessionOptions.HostName = "Server"
$sessionOptions.UserName = "user"
$sessionOptions.Password = "pass"
$session = New-Object WinSCP.Session
$transferOptions = New-Object WinSCP.TransferOptions
$transferOptions.TransferMode = [WinSCP.TransferMode]::Binary
$session.Open($sessionOptions)
$Result = $Session.RemoveFiles("/path/file.pdf")
$Result.Check()
>> Exception calling "Check" with "0" argument(s): "Can't get attributes of file '/path/file.pdf'"