Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
3.9k views
in .NET FTP by (120 points)
I am trying to do a GetFiles command to get a list of files on the remote directory.
ftpconnection.GetFiles(strFileName)
strFileName = Testing_File*.txt
The file on the remote server is named: testing_File.txt (notice the lower case t for testing)

No files are returned within the GetFiles command because the case does not match.

Any ideas on how to resolve this issue?

1 Answer

0 votes
by (51.6k points)
When you pass a wildcard to GetFiles it passes it to the server, so the server determines how the match is made. In your case, clearly the server is using case-sensitive matching. Our server, CompleteFTP, does case-insensitive matching.

Unless you can configure the server to do case-insensitive matching your best bet is to get a listing of all the files and then filter them yourself.

- Hans (EnterpriseDT)

Categories

...