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

Author Message
VKDD
[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/abc.zip), 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.

Thanks.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24991
Location: Prague, Czechia
Session.FileExists accepts only full path to a single file/directory, no masks.
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