Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

SkipLewis

Found the Answer in Earlier Post

It's by using:

session.FileExists(remotePath)

Sorry if I wasted anyone's time.

Skip
SkipLewis

Most Efficient Way to Determine if a Folder Exists?

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