Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

abillon wrote:

Do you know when you will release 5.13.4 ?

Probably in about a month.
abillon

Hello Martin,

Do you know when you will release 5.13.4 ?

Thanks

BR,

Alex
martin

Re: FTP Protocol // Session.GetFiles with FileMask "| */" list all subdirectories

Thanks.

This bug has been added to the tracker:
https://winscp.net/tracker/1656

I'm sending you an email with a development version of WinSCP to the address you have used to register on this forum.
abillon

Sorry wrong log ... You will find attached the log.
As there are lots of subdirectories and files, there is a timeout.

I tried to reproduce the issue on a local server IIS and vsFTPd but couldn't.
Maybe my command in the original script is different but I can't see it myself.
martin

Re: FTP Protocol // Session.GetFiles with FileMask "| */" list all subdirectories

I do not see any recursive folder listing in the log. Quite on the contrary:

. 2018-06-20 15:25:21.568 File "/IN/sub1" excluded from transfer
...
. 2018-06-20 15:25:21.568 File "/IN/sub2" excluded from transfer
abillon

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 ?

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