Topic "Most Efficient Way to Determine if a Folder Exists?"

Author Message
SkipLewis
[View user's profile]

Joined: 2015-03-31
Posts: 4
Using the .NET Assembly, I'm currently using ListDirectory() to determine if a Folder exists. See code below:

sSess.Open(sOpts)
Dim dir As RemoteDirectoryInfo = sSess.ListDirectory(ftpSendBillsPath)
sSess.Close()

I'm thinking that's going to slow down as more and more files get added to that Folder.

Is there a more efficient way to validate the existence of a Folder before attempting to send files to it?

Thanks in advance for your help.

Skip
SkipLewis
[View user's profile]

Joined: 2015-03-31
Posts: 4
It's by using:

session.FileExists(remotePath)

Sorry if I wasted anyone's time.

Skip
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