private void EnumerateFiles(DirectoryInfo gitFolder, List <ISourceItem> list, string rootFolder)
 {
     foreach (var item in gitFolder.EnumerateDirectories())
     {
         if (item.Name == ".git")
         {
             continue;
         }
         EnumerateFiles(item, list, rootFolder + "\\" + item.Name);
     }
     foreach (var item in gitFolder.EnumerateFiles())
     {
         GitSourceItem sourceItem = new GitSourceItem {
             Name   = item.Name,
             Folder = rootFolder,
             Url    = item.FullName
         };
         list.Add(sourceItem);
     }
 }
Exemplo n.º 2
0
 private void EnumerateFiles(DirectoryInfo gitFolder, List<ISourceItem> list, string rootFolder)
 {
     foreach (var item in gitFolder.EnumerateDirectories())
     {
         if (item.Name == ".git")
         {
             continue;
         }
         EnumerateFiles(item, list, rootFolder + "\\" + item.Name);
     }
     foreach (var item in gitFolder.EnumerateFiles())
     {
         GitSourceItem sourceItem = new GitSourceItem { 
             Name = item.Name,
             Folder = rootFolder,
             Url = item.FullName
         };
         list.Add(sourceItem);
     }
 }