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 RemotePath class (martin) | ||
| Line 78: | Line 78: | ||
| string localFilePath = | string localFilePath = | ||
| - | downloadSession.TranslateRemotePathToLocal( | + | RemotePath.TranslateRemotePathToLocal( |
| remoteFilePath, remotePath, localPath); | remoteFilePath, remotePath, localPath); | ||
| Console.WriteLine( | Console.WriteLine( | ||
| Line 86: | Line 86: | ||
| Path.GetDirectoryName(localFilePath)); | Path.GetDirectoryName(localFilePath)); | ||
| downloadSession.GetFiles( | downloadSession.GetFiles( | ||
| - | downloadSession.EscapeFileMask(remoteFilePath), | + | RemotePath.EscapeFileMask(remoteFilePath), |
| localFilePath).Check(); | localFilePath).Check(); | ||
| } | } | ||
| Line 230: | Line 230: | ||
| $session.GetFiles( | $session.GetFiles( | ||
| - | $session.EscapeFileMask($remoteFilePath), $localFilePath). | + | [WinSCP.RemotePath]::EscapeFileMask($remoteFilePath), |
| - | ····································Check() | + | ···································$localFilePath).Check() |
| } | } | ||
| } | } | ||
| Line 354: | Line 354: | ||
| string remoteFilePath = | string remoteFilePath = | ||
| - | uploadSession.TranslateLocalPathToRemote( | + | RemotePath.TranslateLocalPathToRemote( |
| localFilePath, localPath, remotePath); | localFilePath, localPath, remotePath); | ||
| Console.WriteLine( | Console.WriteLine( | ||
| Line 399: | Line 399: | ||
| uploadSession.PutFiles( | uploadSession.PutFiles( | ||
| - | localFilePath, uploadSession.EscapeFileMask(remoteFilePath)). | + | localFilePath, RemotePath.EscapeFileMask(remoteFilePath)). |
| Check(); | Check(); | ||
| } | } | ||