Differences

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

2018-03-29 2018-10-03
simplify structure (martin) Using FullName (martin)
Line 51: Line 51:
        # Download the selected file         # Download the selected file
        $session.GetFiles(         $session.GetFiles(
-            [WinSCP.RemotePath]::EscapeFileMask($remotePath + $latest.Name), $localPath).Check()+            [WinSCP.RemotePath]::EscapeFileMask($latest.FullName), $localPath).Check()
    }     }
    finally     finally
Line 117: Line 117:
                // Download the selected file                 // Download the selected file
                session.GetFiles(                 session.GetFiles(
-                    RemotePath.EscapeFileMask(remotePath + latest.Name), localPath).Check();+                    RemotePath.EscapeFileMask(latest.FullName), localPath).Check();
            }             }

Last modified: by martin