Topic "Hi,Specifics chars in filenames with sFTP downloads."

Author Message
PatrickC
[View user's profile]

Joined: 2015-03-18
Posts: 1
Location: Paris (France)
Hi,

In Visual Studio 2012.Net, i can't manage to download files with specific characters as '[' or ']'... I've tried with WinSCP 5.7 and sFTP protocol.

For all filenames containing these chars i have the message Script: No file matching '_fpswtlq3kgia6luaaacncn4paby_lggd-guid[fuuswvrztgkapqsaaaanpp0aaby_par3].wid' found.
I have no problem for other files.

Is there a workoaround for this trouble ?

Thanks in advance,
Patrick
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
You have to escape the [.
See: http://winscp.net/eng/docs/file_mask#basic

If you are using WinSCP .NET assembly, you should use Session.EscapeFileMask on all literal paths:
http://winscp.net/eng/docs/library_session_escapefilemask
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License