Ok, but I suppose you set the
As the example, you refer to, calls
Also note that the example does not use wildcards, nor mentions anywhere that you can use wildcards for it.
Anyway this is really just an code sample. If you want its functionality, including wildcard support, use the simple code mentioned in comments:
fileName
to FTP14*.x
.
As the example, you refer to, calls
session.FileExists(remotePath)
before calling session.GetFiles(remotePath, localPath)
, it fails. You probably do not want the check at all. Just remove it.
Also note that the example does not use wildcards, nor mentions anywhere that you can use wildcards for it.
Anyway this is really just an code sample. If you want its functionality, including wildcard support, use the simple code mentioned in comments:
// You can achieve the same using:
session.SynchronizeDirectories(
SynchronizationMode.Local, localPath, remotePath, false, false, SynchronizationCriteria.Time,
new TransferOptions { IncludeMask = fileName }).Check();