S
stainless
I know this is not necessarily a C# question but the code I am
wrinting is C# and I wasn't sure whereelse to ask the question.
I have taken some web code (from codeproject.com) that performs FTP
commands and used this in C# code to retrieve a list of files in a
diretory, using the NLST command.
My command is :
SendCommand("NLST" + mask)
The mask, for example, is "FILE*.txt"
The idea is that this should retrieve a list of files that match the
mask.
The problem I have is that it only retrieves names that match the case
exactly.
eg. FILE001.txt is retrieved whereas file002.txt and FiLe003.Txt are
not.
I cannot guarantee the case of the filenames to be processed and thus,
am not sure that this code will be suitable. Is there some kind of
setting in my C# code that would ensure both file names are retrieved?
Cheers
Mark
wrinting is C# and I wasn't sure whereelse to ask the question.
I have taken some web code (from codeproject.com) that performs FTP
commands and used this in C# code to retrieve a list of files in a
diretory, using the NLST command.
My command is :
SendCommand("NLST" + mask)
The mask, for example, is "FILE*.txt"
The idea is that this should retrieve a list of files that match the
mask.
The problem I have is that it only retrieves names that match the case
exactly.
eg. FILE001.txt is retrieved whereas file002.txt and FiLe003.Txt are
not.
I cannot guarantee the case of the filenames to be processed and thus,
am not sure that this code will be suitable. Is there some kind of
setting in my C# code that would ensure both file names are retrieved?
Cheers
Mark