When using ListFiles
SMB1_ListCompleted (Url As String, Success As Boolean, Entries() As SMBFile)
returns Success = False if there are no entries for the filespec passed.
This does not seem right to me. I thought that Success returned true if SMB was able to successfully execute the command. Whether there are any results should be a separate issue.
All I want to do is see if a file exists.
I am checking a directory that may have thousands of files and I don't want to loop through all of them to look for one, I am fine with no entries, but I also want to know that the command executed successfully.
Am I missing something?
Thanks
SMB1_ListCompleted (Url As String, Success As Boolean, Entries() As SMBFile)
returns Success = False if there are no entries for the filespec passed.
This does not seem right to me. I thought that Success returned true if SMB was able to successfully execute the command. Whether there are any results should be a separate issue.
All I want to do is see if a file exists.
I am checking a directory that may have thousands of files and I don't want to loop through all of them to look for one, I am fine with no entries, but I also want to know that the command executed successfully.
Am I missing something?
Thanks