using System; using System.Collections.Generic; using System.IO; using System.Text; namespace sharpreleaser { public class CreateCommand : Command { public CreateCommand() : base(CommandType.CREATE, string.Empty) { } public override void Execute(Project project) { try { string path = project.ParseVariables(CommandText); DirectoryInfo info = new DirectoryInfo(path); info.Create(); Output = "Created folder: " + path; } catch (Exception ex) { Error = ex.ToString(); } } } }