Indeed the square bracket
https://winscp.net/eng/docs/file_mask#basic
In scripting you have to escape it like:
In .NET assembly, you can (should) use
https://winscp.net/eng/docs/library_remotepath_escapefilemask
[
has a special meaning in the file mask:
https://winscp.net/eng/docs/file_mask#basic
In scripting you have to escape it like:
rm -- "/C:/Shares/Temp/[[]2015] Test"
In .NET assembly, you can (should) use
RemotePath.EscapeFileMask
method:
https://winscp.net/eng/docs/library_remotepath_escapefilemask