I resolved my issue using this one:
$wildcard = "*.log | */",
$wildcard = "*.log | */",
|*/nsx/metrics/
but it doesn't work.
RemotePath
/LocalPath
are.
# @option Wildcard -run textbox "File mask:" "*.log"
*.log
files only?
$transferOptions = New-Object WinSCP.TransferOptions
$transferOptions.FileMask = "*.log"
$differences =
$session.CompareDirectories(
[WinSCP.SynchronizationMode]::Local, $localPath, $remotePath,
$delete, $False, [WinSCP.SynchronizationCriteria]::Time,
$transferOptions)
.log
extensions.
# @option Mask -config textbox "&File mask" "*.log"