コード例 #1
0
 public override RepositoryFolderBase GetSubFolderByName(string name, bool recursive = false)
 {
     foreach (RepositoryFolder <T> RF in GetSubFolders())
     {
         if (RF.FolderRelativePath == name)
         {
             return(RF);
         }
         // Recursive scan down the tree
         if (recursive)
         {
             RepositoryFolderBase subRF = RF.GetSubFolderByName(name, true);
             if (subRF != null)
             {
                 return(subRF);
             }
         }
     }
     return(null);
 }