Esempio n. 1
0
        private List <string> SearchDirectoriesEndsWith(string fileName)
        {
            List <string> foundDirectories = new List <string>();

            foreach (string TppFile in TppFileList)
            {
                if (TppFile.EndsWith(fileName))
                {
                    foundDirectories.Add(Path.GetDirectoryName(TppFile));
                }
            }
            return(foundDirectories);
        }
 private string FindCondensedDir(string fileName)
 {
     foreach (string TppFile in TppFileList)
     {
         if (TppFile.EndsWith(fileName))
         {
             if (TppFile.Contains("_pftxs"))
             {
                 int pftxsPathLength = TppFile.IndexOf("_pftxs") + 6;
                 return(Path.GetDirectoryName(TppFile.Remove(0, pftxsPathLength + 1)));
             }
             else
             {
                 return(Path.GetDirectoryName(TppFile));
             }
         }
     }
     return(null);
 }