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
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