FTP Protocol // Session.GetFiles with FileMask "| */" list all subdirectories
Hello,
Session.GetFiles list all folders recursively even if the "| */" FileMask has been set in the TransferOptions object, see session log attached.
Is there a way to prevent this behaviour ?
BR,
Alex
Session.GetFiles list all folders recursively even if the "| */" FileMask has been set in the TransferOptions object, see session log attached.
Is there a way to prevent this behaviour ?
transferOptions = New-Object WinSCP.TransferOptions $transferOptions.TransferMode = [WinSCP.TransferMode]::Binary $transferOptions.FileMask = "XYRSCXMLXYR*.err | */" $transferResult = $session.GetFiles("/IN/*", "C:\EDI\scripts\tests\in\WINSCP\", $False, $transferOptions)
BR,
Alex