Differences

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

2016-09-29 2016-10-12
reimplemeting using EnumerateRemoteFiles and FullName (martin) explicit value to switch parameter argument for compatibility with PowerShell 2 (martin)
Line 18: Line 18:
# @description  Searches for duplicate files on the server, starting from the current directory # @description  Searches for duplicate files on the server, starting from the current directory
# @flag        RemoteFiles # @flag        RemoteFiles
-# @version      3+# @version      4
# @homepage    https://winscp.net/eng/docs/library_example_find_duplicate_files # @homepage    https://winscp.net/eng/docs/library_example_find_duplicate_files
# @require      WinSCP 5.9.1 # @require      WinSCP 5.9.1
Line 28: Line 28:
    # Use Generate URL function to obtain a value for -sessionUrl parameter.     # Use Generate URL function to obtain a value for -sessionUrl parameter.
    $sessionUrl = "sftp://user:mypassword;fingerprint=ssh-rsa-xx-xx-xx@example.com/",     $sessionUrl = "sftp://user:mypassword;fingerprint=ssh-rsa-xx-xx-xx@example.com/",
-    [Parameter(Mandatory)]+    [Parameter(Mandatory = $True)]
    $remotePath,     $remotePath,
    $remoteChecksumAlg = $Null,     $remoteChecksumAlg = $Null,

Last modified: by martin