Need to change program filtering of files getting from FTP : <p>I've a C# program that received FTP records. The files we receive are all .csv so I check for that below:</p>

<pre><code>private static bool IsAllowedExtension(string fileExtension)
        {
            return  fileExtension.ToLower() == ".csv";
        }
</code></pre>

<p>then we process only this sort of file:</p>

<pre><code> foreach (RemoteFileInfo fileInfo in directory.Files)
                                {
                                    var fileExtension = Path.GetExtension(fileInfo.Name);
                                    if (string.IsNullOrEmpty(fileExtension) || !IsAllowedExtension(fileExtension))
                                        continue;

                                    if (!Directory.Exists(LocalPath))
                                        Directory.CreateDirectory(LocalPath);

                                    var localFile = string.Format("{0}\\{1}",LocalPath.TrimEnd('\\') , fileInfo.Name);

                                    if (fileInfo.Name != ".." &amp;&amp; !File.Exists(localFile))
</code></pre>

<p>However, now there has been some .csv in the group receiving we dont want. So i want to add or change this to that the file we want all start as this:</p>

<p>"CheckoutReportID=" this would give us only the ones needed.</p>
