Example #1
0
        public static void AddFolder(string projectName, string folder)
        {
            DirectoryInfo di = new DirectoryInfo(ConfigDirectories.GetBuildFolder(projectName));

            if (!di.Exists)
            {
                di.Create();
            }
            string[] path = folder.Split('/');
            foreach (string s in path)
            {
                if (!String.IsNullOrEmpty(s))
                {
                    DirectoryInfo subDir = new DirectoryInfo(Path.Combine(di.FullName, s));
                    if (!subDir.Exists)
                    {
                        subDir.Create();
                    }
                    di = subDir;
                }
            }
        }
Example #2
0
 public static string GetLogicalFolder(string projectName, string fileName)
 {
     return(ConfigDirectories.RemoveLeadBackslash(ConfigDirectories.GetBuildFolder(projectName, fileName)));
 }