Topic "check if file exists at the remote path using wild card"

Author Message
[View user's profile]

Joined: 2012-12-16
Posts: 1
Location: United States
I was able to use session.FileExists using a specific file name in the remote path (/test/, but, when I changed the file name to a wild card (/test/*.zip) it gives fileExists = false, even though a zip file exists in the folder.

How can I use wild card to see if file exists in that folder. Based on that I want to redirect the flow of my application.

[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26911
Location: Prague, Czechia
Session.FileExists accepts only full path to a single file/directory, no masks.

You can post new topics in this forum


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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License