예제 #1
0
 private void ProcessCartridges(string cartridgeDir, ProcessCartridgeCallback action)
 {
     if (!string.IsNullOrEmpty(cartridgeDir))
     {
         string cartDir = Path.Combine(this.container.ContainerDir, cartridgeDir);
         action(cartDir);
         return;
     }
     else
     {
         foreach (string dir in Directory.GetDirectories(container.ContainerDir))
         {
             if (File.Exists(Path.Combine(dir, "metadata", "manifest.yml")))
             {
                 action(dir);
             }
         }
     }
 }
 private void ProcessCartridges(string cartridgeDir, ProcessCartridgeCallback action)
 {
     if (!string.IsNullOrEmpty(cartridgeDir))
     {
         string cartDir = Path.Combine(this.container.ContainerDir, cartridgeDir);
         action(cartDir);
         return;
     }
     else
     {
         foreach (string dir in Directory.GetDirectories(container.ContainerDir))
         {
             if(File.Exists(Path.Combine(dir, "metadata", "manifest.yml")))
             {
                 action(dir);
             }
         }
     }
 }