Differences

This shows you the differences between the selected revisions of the page.

2017-11-13 2018-02-20
removing unneeded exception type specification (martin) 5.13 session path methods to remotepath class (martin)
Line 51: Line 51:
        # Download the selected file         # Download the selected file
        $session.GetFiles(         $session.GetFiles(
-            $session.EscapeFileMask($remotePath + $latest.Name), $localPath).Check()+            [WinSCP.RemotePath]::EscapeFileMask($remotePath + $latest.Name), $localPath).Check()
    }     }
    finally     finally
Line 117: Line 117:
                // Download the selected file                 // Download the selected file
                session.GetFiles(                 session.GetFiles(
-                    session.EscapeFileMask(remotePath + latest.Name), localPath).Check();+                    RemotePath.EscapeFileMask(remotePath + latest.Name), localPath).Check();
            }             }

Last modified: by martin